Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^3: Killing subprocess in windows

by Discipulus (Abbot)
on May 21, 2021 at 07:04 UTC ( #11132829=note: print w/replies, xml ) Need Help??

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.


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 (Sage) 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.


    ) 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

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11132829]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2021-09-20 09:04 GMT
Find Nodes?
    Voting Booth?

    No recent polls found