|
Hi All:
I am taking a class in unix systems. One of the
problems
that we have to solve is getting the exit status
from backgrounded
processes. The context in which we are doing this
is adding on to
a basic shell that we were given.
I have looked at wait4, and I have used WNOHANG. It
seems silly
to call a wait function of any kind for these
processes. Is there another
way to create a signal handler that will allow me
to link a specific
process with a given exit signal for that process?
If signals are not
the way to go, are there any other simple means of
accomplishing
this.
I am not asking anyone to do 'my work', only point
me in the right
direction. Thanks...
John ;>
|