02.07.2013 Views

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

signal(3) signal(3)<br />

S I G DFL - ignore signal<br />

-The signal is to be ignored.<br />

S I G I GN - ignore signal<br />

-The signal is to be ignored. Also, if sig is SIGCLD, the calling<br />

process's child processes will not create zombie<br />

processes when they tenninate; see exi t(2).<br />

function-address - catch signal<br />

If the signal is S I GPWR, the action to be taken is the same as<br />

that described above for Junc equal to function-address. The<br />

same is true if the signal is S I GCLD except, that while the<br />

process is executing the signal-catching function, any received<br />

SIGCLD signals will be queued and the signalcatching<br />

function will be continually reentered until the<br />

queue is empty.<br />

The SIGCLD affects two other system calls (wait(2), and<br />

exi t(2» in the following ways:<br />

wait Ifthefunc value of SIGCLD is set to SIG IGN and<br />

a wai t is executed, the wai t will block until all of<br />

the calling process's child processes tenninate; it<br />

will then return a value of -1 with errno set to<br />

ECHILD.<br />

exi t If in the exiting process's parent process the fUnc<br />

value of S I GCLD is set to S I G I GN, the exiting<br />

process will not create a zombie process.<br />

When processing a pipeline, the shell makes the last process in the<br />

pipeline the parent of the proceeding processes. A process that<br />

may be piped into in this manner (and thus become the parent of<br />

other processes) should take care not to set SIGCLD to be caught<br />

SEE ALSO<br />

kill(1), kill(2), pause(2), ptrace(2), setcompat(2),<br />

sigvec(2), wait(2), set42sig(3), setjmp(3C).<br />

BUGS<br />

If a repeated signal arrives before the last one can be reset, there is<br />

no chance to catch it. However, see the setcompat flag<br />

COMPAT BSDSIGNALS.<br />

5<br />

The type specification of the routine and its func argument are<br />

problematical.<br />

February, 1990<br />

RevisionC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!