Skip Navigation Links | |
Exit Print View | |
Programming Interfaces Guide Oracle Solaris 10 1/13 Information Library |
2. Remote Shared Memory API for Solaris Clusters
3. Session Description Protocol API
Selecting Advisory or Mandatory Locking
Cautions About Mandatory Locking
Setting and Removing Record Locks
9. Programming With XTI and TLI
11. Transport Selection and Name-to-Address Mapping
12. Real-time Programming and Administration
Terminal I/O interfaces deal with a general terminal interface for controlling asynchronous communications ports, as shown in the following table. For more information, see the termios(3C) and termio(7I) man pages.
Table 6-5 Terminal I/O Interfaces
|
The following example shows how the server dissociates from the controlling terminal of its invoker in the non-DEBUG mode of operation.
Example 6-4 Dissociating From the Controlling Terminal
(void) close(0); (void) close(1); (void) close(2); (void) open("/", O_RDONLY); (void) dup2(0, 1); (void) dup2(0, 2); setsid();
This operation mode prevents the server from receiving signals from the process group of the controlling terminal. A server cannot send reports of errors to a terminal after the server has dissociated. The dissociated server must log errors with syslog(3C).