Um. Off the top of my head, I don't know where it actually documented. It's one of those things that I picked up by osmosis through reading PM. Probably from tye. He's the source of most of the useful stuff regarding Perl and Win32 around here.
As for how it works, that's fairly easily explainable. It is a Win32-only special case coded into the sources. If the first argument to system is (exactly) '1', then the code adds the CREATE_NEW_PROCESS_GROUP flag to the creation flags parameter passed to CreateProcess(), which has the required effect of 'detaching' the process created from it's parent.
|Replies are listed 'Best First'.|
Re^4: Invoking the Windows command line for selected directories
by spurperl (Priest) on Nov 28, 2006 at 16:13 UTC
by BrowserUk (Pope) on Nov 28, 2006 at 16:30 UTC