bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

system module?


From: Eric Blake
Subject: system module?
Date: Tue, 20 Jun 2006 20:56:29 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Andreas Buening reported that OS/2 violates the CX shading in POSIX 2001 in 
that the return value of system() is not parseable with WEXITSTATUS:

http://www.nabble.com/Re%3A-sysval-and-doc-fixes--was%3A-GNU-M4-1.4.4b-released-
%28beta-release%29--t1815393.html#a4961536

In short, on OS/2, waitpid() and pclose() use (status>>8)&0xff, but system() 
uses status&0xff, to represent the low 8 bits returned from main() in the child 
process.

Is it worth adding a system module to gnulib that detects implementations with 
this bug, and provides rpl_system to work around it?

-- 
Eric Blake






reply via email to

[Prev in Thread] Current Thread [Next in Thread]