Re: [PATCH] standardize save/restore of errno & vaxc$errno
Chip Salzenberg [Fri, 5 Dec 2008 13:32:19 +0000 (05:32 -0800)]
Message-ID: <20081205213219.GH16081@tytlal.topaz.cx>

p4raw-id: //depot/perl@35059

util.c

diff --git a/util.c b/util.c
index 6af4be3..c4fa794 100644 (file)
--- a/util.c
+++ b/util.c
@@ -2875,8 +2875,8 @@ Perl_my_pclose(pTHX_ PerlIO *ptr)
        return my_syspclose(ptr);
     }
 #endif
-    if ((close_failed = (PerlIO_close(ptr) == EOF)))
-       SAVE_ERRNO;
+    close_failed = (PerlIO_close(ptr) == EOF);
+    SAVE_ERRNO;
 #ifdef UTS
     if(PerlProc_kill(pid, 0) < 0) { return(pid); }   /* HOM 12/23/91 */
 #endif