progamming approach review, child processes

A

astar

So I have not done much with child processes before.

I have an input of programs to be updated, a child process that does
the
compiles and links (with a log output to an individual file), and a
process wait
at the end. Except the child process can hang (at the moment, the
problem that might show up is: waiting for
input). At which point a convenience becomes a hinderance.

As it happens the idea of doing the compiles in parallel is supported
by the
ports system I am working with. So I thought I could avoid the wait
syntax, do
a lot of children, save all the process hmm I am not sure what to call
the
pointers, and after a while interrogate the process information to
see if all
the children got done. At some point, I could think a child is hung
and maybe
do some useful reporting. Realize that this might be the next day
because the
compiles might take a while.

Is this a reasonable approach?

Thank you for your consideration.

Possibly pointless information:

openbsd 4.8 workstation, packages, but using the port system, want
only to
compile packages I have installed. There is a utility to tell me
which packages
are out of date. And I really know I could use pkg_add -u. I did
some
attachments of the programs, but I suppose they will get scrubbed..

python is I think 2.6.5?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top