vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi! On Sat, May 03, 2008 at 10:03:39PM +0800, Dasn wrote: >I found the TIOCSIG is defined in <sys/ttycom.h> as: >> #define TIOCSIG _IO('t', 95) /* pty: generate signal */ After reading the kernel sources about this, I think the definition in <sys/ttycom.h> is probably in error and it should be #define TIOCSIG _IOW('t', 95, int) ^^^^ ^^^ Strangely, the xterm sources don't reference TIOCSIG, so I don't know how xterm implements the send SIGfoo menu functions instead. >But I cannot find any clues about it in pty(4). >The code: > int sig = SIGTERM; > ioctl(pty_master, TIOCSIG, &sig) ; That usage should be ok, and perhaps would work if you patched <sys/ttycom.h> appropriately (recompile kernel, reboot, recompile your app). >[...] >Is the TIOCSIG supported by pty(4) ? Should be, save for the error I seem to have spotted above. Kind regards, Hannah. |
| Thread Tools | |
| Display Modes | |
| |