develooper Front page | perl.perl5.porters | Postings from August 2013

[perl #85104] select returns -1 but $! is 0 (or empty string)

Thread Previous
From:
Tony Cook via RT
Date:
August 26, 2013 06:36
Subject:
[perl #85104] select returns -1 but $! is 0 (or empty string)
Message ID:
rt-3.6.HEAD-1873-1377498997-1313.85104-15-0@perl.org
On Sun Jul 14 18:10:49 2013, tonyc wrote:
> On Sun Jun 23 22:50:30 2013, tonyc wrote:
> > On Tue Mar 01 07:44:37 2011, perl5-porters@ton.iguana.be wrote:
> > > Ok following is the patch against blead. Changes:
> > >   - Only save errno once before calling a signal handler
> > >     (but restore at the end of each handler)
> > >   - Also save $^E
> > 
> > While the patch supplied has some issues, I wonder if dSAVE_ERRNO should
> > save the Win32/OS/2 error codes in general?
> 
> Here's an alternate patch that extends the errno save macros for
> platforms other than VMS.
> 
> No tests yet.

I've applied a varient of this as
6ca940a96b9e45faae91a09cbb08c467933bbde9 with tests for win32 in
ed51a345f34e4dd7c7c58241f538c01d9f58b539.

Tony



---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=85104

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About