in reply to exec on Windows "halfway forks"
Have you tried checking the return code from exec?
Because on my system exec never returns, so quite how you are reaching the while loop I do not understand.
Try running this:
perl -e"warn $$; exec 'notepad'; warn 'here'"
You'll see the pid printed & notepad start, but never see 'here'.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: exec on Windows "halfway forks"
by JavaFan (Canon) on Jun 14, 2010 at 18:27 UTC | |
by BrowserUk (Patriarch) on Jun 14, 2010 at 18:38 UTC | |
|
Re^2: exec on Windows "halfway forks"
by rovf (Priest) on Jun 15, 2010 at 11:28 UTC | |
by BrowserUk (Patriarch) on Jun 15, 2010 at 11:38 UTC |