GNU bug report logs - #6430
Emacs WINDOWS truncates exit status of processes to 8 bits

Previous Next

Package: emacs;

Reported by: macross84 <at> ozu.es

Date: Tue, 15 Jun 2010 17:29:01 UTC

Severity: wishlist

Tags: wontfix

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Noam Postavsky <npostavs <at> users.sourceforge.net>
Cc: macross84 <at> ozu.es, 6430 <at> debbugs.gnu.org
Subject: bug#6430: Emacs WINDOWS truncates exit status of processes to 8 bits
Date: Tue, 14 Jun 2016 17:35:00 +0300
> From: Noam Postavsky <npostavs <at> users.sourceforge.net>
> Date: Mon, 13 Jun 2016 22:48:25 -0400
> Cc: macross84 <at> ozu.es
> 
> Problem is 32bit Emacs has 28 bit integers, so there's no way to fit
> the whole exit code anyway. At least truncating to 8 bits is portable.
> Plus, isn't it against Emacs policy to provide features on non-Free
> platforms before Free ones?

All the above is true, but I don't understand the original complaint.
Emacs doesn't truncate exit status of subprocesses in any way, it
retrieves the full value of the status, and then reformats it
according to what the Posix-style WIF* macros (which Emacs uses
elsewhere) expect.  No information is lost during this reformatting,
see the implementation of waitpid in w32proc.c.  Currently, we only
report SIGINT in the WSTOPSIG macro, but that's only because no one
ever needed anything else; if needed, we could also report SIGSEGV
there.

IOW, I see no problem here to begin with.

Thanks.




This bug report was last modified 4 years and 187 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.