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

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

Thread Previous | Thread Next
From:
Tony Cook via RT
Date:
July 15, 2013 01:11
Subject:
[perl #85104] select returns -1 but $! is 0 (or empty string)
Message ID:
rt-3.6.HEAD-2552-1373850648-1952.85104-15-0@perl.org
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.

Tony


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

Thread Previous | Thread Next


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