Re: mg: extract exit status from pclose return value

2017-10-23 Thread Scott Cheloha
> On Aug 25, 2017, at 11:27 PM, Scott Cheloha wrote: > > compile_mode() currently just reports the value returned by > pclose(3). This is incorrect because pclose gives you > whatever wait4(2) returned, which needs to be examined > with the various W* macros in to derive a proper > exit status.

Re: mg: extract exit status from pclose return value

2017-09-06 Thread Scott Cheloha
~2 week bump. Any thoughts or feedback? -- Scott Cheloha > On Aug 25, 2017, at 11:27 PM, Scott Cheloha wrote: > > Hi, > > compile_mode() currently just reports the value returned by > pclose(3). This is incorrect because pclose gives you > whatever wait4(2) returned, which needs to be examin

mg: extract exit status from pclose return value

2017-08-25 Thread Scott Cheloha
Hi, compile_mode() currently just reports the value returned by pclose(3). This is incorrect because pclose gives you whatever wait4(2) returned, which needs to be examined with the various W* macros in to derive a proper exit status. This patch checks how the popen'd process exited and chooses