Don't do that.

In general, you're going to run into a whole mess of problems with the kind
of thing you want to do, and your best is to control everything and avoid
the shell. Pipe opens, as Uri suggested, are the way to go, unless you need
bi-/tri-directional support in which case there are IPC::Open[23]/IPC::Run.

But often you can get away, from perlipc:

       On most Unix platforms, the "CHLD" (sometimes also known as "CLD") sig-
       nal has special behavior with respect to a value of 'IGNORE'.  Setting
       $SIG{CHLD} to 'IGNORE' on such a platform has the effect of not creat-
       ing zombie processes when the parent process fails to "wait()" on its
       child processes (i.e. child processes are automatically reaped).  Call-
       ing "wait()" with $SIG{CHLD} set to 'IGNORE' usually returns "-1" on
       such platforms.

_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to