All,
I had a question about system, and how it relates to fork and exec..
Right now, I have processes in scripts of the form:
system("sleep 50000 &");
where, upon forking, the process immediately goes into the background.
This is fine, but it also - by default - *detaches itself from the
parent*, meaning that if i do a ptree on the given process, I no
longer see the parent/child relationships. Which is not so good.
However, if I do:
_system("sleep 50000");
where system is defined as:
sub _system
{
Thread Next