Re: TIOCSIG in pty(4)?
  Home FAQ Contact Sign in
mailing.openbsd.tech only
 
Advanced search
POPULAR GROUPS

more...

mailing.openbsd.tech Profile…
 Up
Re: TIOCSIG in pty(4)?         


Author: Hannah Schroeter
Date: May 8, 2008 12:11

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.
Show full article (2.30Kb)
no comments

RELATED THREADS
SubjectArticles qty Group
TIOCSIG in pty(4)?mailing.openbsd.tech ·
Re: kern/25866: [patch] more than 256 ptys, up to 1302 ptys.mailing.freebsd.bugs ·