srvance has asked for the wisdom of the Perl Monks concerning the following question:
Using fork/exec, kill and waitpid have problems on Windows. IPC::Run and IPC::Open3 deal with spawning and I/O, but don't deal with monitoring and control well. Although an attempt with Open3 solved some spawning issues, either waitpid isn't working or the process isn't dying (perhaps due to pending I/O?).
I searched perlmonks. The link to STEM gives a blank page. POE seems like overkill (I need to be able to justify inclusion of a package into a corporate distribution). Likewise with Parallel::*.
Are there any portable approaches I haven't considered, tips to make one of the above approaches work, or should I conditionalize my code to use Win32::Process on Windows?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Portable Process Management
by erroneousBollock (Curate) on Nov 16, 2007 at 07:18 UTC | |
|
Re: Portable Process Management
by cdarke (Prior) on Nov 16, 2007 at 09:33 UTC | |
by srvance (Initiate) on Nov 16, 2007 at 23:15 UTC | |
by srvance (Initiate) on Nov 23, 2007 at 17:44 UTC | |
|
Re: Portable Process Management
by Anonymous Monk on Nov 16, 2007 at 07:34 UTC | |
by erroneousBollock (Curate) on Nov 16, 2007 at 07:37 UTC | |
by srvance (Initiate) on Nov 16, 2007 at 23:05 UTC |