Berkeley CSUA MOTD:Entry 41229
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/04 [General] UID:1000 Activity:popular
4/4     

2006/1/4-6 [Computer/SW/Languages/Perl] UID:41229 Activity:nil
1/4     How can I kill a win32 process in perl that I created from fork?
        I tried fork + Win32::Process::KillProcess, but I don't think that's
        the right process id.
        \_ One would assume you could just call kill() on whatever id you got
           back from fork(), but that probably makes too much sense.
           \_ I've tried kill, and it doesn't kill the proc.  I of course tried
              that first.  It works fine on Unix.  I'm using activestate perl.
        \_ what are you forking?
           \_ The child proc exec's mplayer, the parent monitors it and kills
              it under certain conditions.