Bug 3223 - HP-UX doesnt support TIOCNOTTY ioctl (use POSIX setsid())
: HP-UX doesnt support TIOCNOTTY ioctl (use POSIX setsid())
Status: RESOLVED FIXED
: Replica Location
RLS
: development
: IA64 HP-UX
: P3 normal
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2005-04-25 13:38 by
Modified: 2005-06-15 18:38 (History)


Attachments
use setsid() when TIOCNOTTY ioctl() is unavailable (462 bytes, patch)
2005-04-25 13:39, Jeff Forys
Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2005-04-25 13:38:13
The BSD method of using the TIOCNOTTY ioctl() to disassociate a process from
it's tty is not supported on HP-UX.  On systems like these, where TIOCNOTTY is
not available (not defined), you can use the POSIX setsid() function to create a
new session and set the process group id.

The following patch to "source-trees/replica/rls/server/misc.c" will do this. 
Since it only takes effect when TIOCNOTTY is not defined, this change will not
affect any other platforms.
------- Comment #1 From 2005-04-25 13:39:04 -------
Created an attachment (id=590) [details]
use setsid() when TIOCNOTTY ioctl() is unavailable
------- Comment #2 From 2005-06-15 18:38:01 -------
Thanks for the patch