delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/02/26/15:28:51

From: <ams AT ludd DOT luth DOT se>
Message-Id: <200302262028.h1QKSl606431@speedy.ludd.luth.se>
Subject: Re: DJGPP port of Perl 5.6.1 & POSIX::WEXITSTATUS
In-Reply-To: <3E5D179E.B9A19256@phekda.freeserve.co.uk> "from Richard Dawe at
Feb 26, 2003 07:38:06 pm"
To: djgpp-workers AT delorie DOT com
Date: Wed, 26 Feb 2003 21:28:46 +0100 (CET)
X-Mailer: ELM [version 2.4ME+ PL78 (25)]
MIME-Version: 1.0
X-MailScanner: Found to be clean
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Hi there.

According to Richard Dawe:
> There seem to be two solutions:
> 
> 1. Make POSIX::WEXITSTATUS (and the other POSIX:W*) do something special for
> DJGPP, to cope with the inconsistency between the return code of Perl's
> "system" call and POSIX::W*.
> 
> 2. DJGPP doesn't have working wait*. So we can make W* from <sys/wait.h>
> compatible with Linux (and other Unices, I'm guessing) without breaking
> anything. I.e.: follow the Unix Way.

3. Make Perl's "system" function compatible with the underlying OS
(might include documentation changes).

Don't take the following two points too seriously (even if they are
true, AFAICT):

1 is obviously wrong. POSIX::WEXITSTATUS should match the header.

Not 2. It's perl's problem if it can't adjust to the platform.


However, if nobody's using W* from <sys/wait.h>, then 2 would correct
it in a perl friendly way.


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019