in reply to Re^2: Killing subprocess in windows
in thread Killing subprocess in windows

Hello LanX,

> (about fork) I don't wanna replicate the Perl script but spawn a PS window.

You are already forking!

From system

> Does exactly the same thing as exec, except that a fork is done first and the parent process waits for the child process to exit.

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^4: Killing subprocess in windows (updated)
by LanX (Saint) on May 21, 2021 at 10:50 UTC
    that's the inner implementation.°

    just show me how to do it with fork and you'll see how complicated it is.

    update

    °) and I wouldn't be too sure it's ported the same way to windows.

    IIRC is fork implemented with threads there, so there might be issues.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery