close pipe $? Win32 bug? 
Author Message
 close pipe $? Win32 bug?

Hi,

Run the following on Unix/Win32 generates different result!

        open P, "|exit 0;"; close P;
        print sprintf("0x%04lx", $?), "\n";

        open P, "|exit -1;"; close P;
        print sprintf("0x%04lx", $?), "\n";

on Unix,

        0x0000
        0xff00

on Win32,

        0x0000
        0x0000

Is this feature not supported on Win32?

Any idea?

-Brian



Fri, 14 Jan 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. fork and close on pipe causes hang on win32

2. PERLFUNC: close - close file (or pipe or socket) handle

3. PERLFUNC: close - close file (or pipe or socket) handle

4. Pipe Fails to Close Under Solaris 2.3

5. problem: pipe throughput + close

6. How to forcefully close pipe

7. Closing a pipe and not waiting?

8. Implicit close of piped file handles

9. forked pipes not closing (5.005 -> 5.6)

10. closing pipe returns $? = 0xFF00

11. select doesn't detect pipe close

12. closing a hung pipe

 

 
Powered by phpBB® Forum Software