Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: waitpid on Win32 ... wait forever

by december (Pilgrim)
on May 08, 2009 at 08:07 UTC ( [id://762770]=note: print w/replies, xml ) Need Help??


in reply to waitpid on Win32 ... wait forever

I haven't been using Windows for over 10 years so I'm not entirely sure, but it might be possible that "cd" isn't an actual command but some sort of built-in shell function in command.com or whatever Windows uses these days. So maybe you get no PID at all, or the PID of the parent (the shell)?

Either way, "cd" might be a special case. Unless this really is what you want to do, I suggest you try using some other command.

Replies are listed 'Best First'.
Re^2: waitpid on Win32 ... wait forever
by syphilis (Archbishop) on May 08, 2009 at 08:28 UTC
    I suggest you try using some other command

    Yes, when I first posted I was under the (mistaken) impression that *all* commands would hang. Just now, I'm starting to look at other commands - some of which hang, some of which don't.

    On my MinGW-built perl, a command of 'gcc -v' hangs, but 'gcc -o test.exe test.c' doesn't hang, and the executable gets built.

    Even on my VC7-built perl, a command of 'cl -o try.exe try.c /nologo' seems to work fine - which is surprising as that command is very similar to the command in 00_ptr_cast.t that *does* hang.
    00_ptr_cast.t can be viewed here for anyone who wants to take a look at it.

    Cheers,
    Rob

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-03-29 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found