Thread View: comp.unix.internals
1 messages
1 total messages
Started by Duane Morse
Thu, 12 Nov 1992 18:15
setsid and streams/device driver output to controlling terminal
Author: Duane Morse
Date: Thu, 12 Nov 1992 18:15
Date: Thu, 12 Nov 1992 18:15
26 lines
1654 bytes
1654 bytes
On an NCR 3433, a program of mine which uses TCP/IP occasionally gets an "error 22" from t_open. Running a system call trace (truss) shows that the errno error is 5 (EIO) upon return from ioctl(fd, I_FIND, "timod") (looking for the Transport Interface streams module, I presume). An NCR rep has said that my program needs to use "setsid" because the streams driver is checking to see if it can put a message on the controlling terminal and it returns this error when it finds it cannot (the program and others in the same process group are running "nohup" and the initiator has logged off). Though invoking "setsid" during program initialization does seem to get rid of the error return, I am reluctant to make it a permanent feature of the software because (1) I don't know what sort of error the ioctl is encountering, (2) I don't really understand how setsid() is fixing the problem, and (3) since I don't understand what is going on, I am concerned that there may be other situations with other pieces of software in which I should be using setsid to avoid a problem which might arise. Any comments or clarifications? -- Duane Morse e-mail: duane@anasazi.com (602) 861-7609
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads