Question about pipes, signals, and such

Steven Miale (smiale@cs.indiana.edu)
Sat, 9 Jul 1994 04:44:39 -0500

I'm writing a program which will, at some point, fork off a child process.
That child process is to do some computations, and then return some data to
the parent. I'm using a pipe to send that information through. This works
fine.

The problem: I don't want the parent to wait for the information. I want it
to do something else, and then be notified when the child is finished.

I'm thinking that signals might be what I want (the child would send a
'done' signal to the parent), but there doesn't seem to be any sort of
facility in Python for this right now.

I could call 'select' to check to see if there is data waiting on the pipe,
and just call this repeatedly, but there doesn't seem to be a way to do
that either :-(

Any ideas?

Thanks,

Steve

-- 
Steven Miale - smiale@cs.indiana.edu | Delphi users do
Indiana University, Bloomington, IN  | it with family.