Bugzilla – Bug 3223
HP-UX doesnt support TIOCNOTTY ioctl (use POSIX setsid())
Last modified: 2005-06-15 18:38:01
You need to
before you can comment on or make changes to this bug.
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.
Created an attachment (id=590) [details]
use setsid() when TIOCNOTTY ioctl() is unavailable
Thanks for the patch