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

Re^5: Perl TK

by zentara (Archbishop)
on Sep 24, 2012 at 17:47 UTC ( #995426=note: print w/replies, xml ) Need Help??

in reply to Re^4: Perl TK
in thread Perl TK

Anyone know why it is crashing out my perl? I believe I have it forked properly??

Why do you have exit(0) in the forked code? My guess is that exit is closing the script. Maybe it has something to do with fork being emulated by threads on MSWindows? See How does system(1,"foo") work on Windows?. Maybe all you need is "system(1, start $url)"

if ($pid == 0) { execute(system "start"); exit(0)

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^6: Perl TK
by randor (Novice) on Sep 25, 2012 at 12:39 UTC
    Yeap, that worked.. Thank you.

    I added exit(1) because with fork I did not want any zombie children running around creating havoc on my memory and CPU.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2019-01-19 20:35 GMT
Find Nodes?
    Voting Booth?
    After Perl5, I'm mostly interested in:

    Results (341 votes). Check out past polls.