[Top][All Lists]

[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:


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 

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]