Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: waitpid on Win32 ... wait forever

by december (Pilgrim)
on May 08, 2009 at 08:07 UTC ( #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? | Other CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2022-01-17 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (50 votes). Check out past polls.

    Notices?