Hi!
On Thu, May 08, 2008 at 07:24:19AM +0800, Dasn wrote:
>On 05/05/08 16:00 +0200, Hannah Schroeter wrote:
>> After reading the kernel sources about this, I think the definition in
>> 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
>> appropriately (recompile kernel, reboot, recompile your
>> app).
>Thank you, guys. After applying the patch,
That patch (cleaned up, of course) has been committed to the tree
(-current) in-between, as I've seen.