MAINSAIL System-Specific User's Guides, Chapter 5

previous   next   top   complete contents   complete index   framed top   this page unframed


5. UNIX STREAMS

Child processes created with SOCPRO are in the same process group as the parent. This should prevent children from staying around after the parent dies unexpectedly.

A child process created with PTYPRO, where the child's primary I/O is a TTY, is placed in its own private process group, so that if a CTRL-C is passed to the child, the parent does not get interrupted. This is reasonable for using a PTY as it would be used in a shell.

If the child's primary I/O device is not a TTY, e.g., is a pipe or socket as it would be for SOCPRO, the child is left in the parent's process group so that when the parent dies, the child receives the same signals that the parent received (e.g., SIGQUIT).

5.1. Patches Required to Avoid $readStream Timeout on SOLRS

On the SOLRS or PSOLRS platform, operating system patches are required to fix a bug where $readStream from a stream talking to a child process fails to return immediately when the child process has died.

The patches required are:


previous   next   top   complete contents   complete index   framed top   this page unframed

MAINSAIL System-Specific User's Guides, Chapter 5