Re: system_exec() on Linux

new topic     » goto parent     » topic index » view thread      » older message » newer message

Looking at the man pages for system(3) and wait(2), though, Derek is right. you
should still get back -1 for an error, but your actual eight-bit exit status is
in the lower half of the word you get back.

Heh. Learn something new every day.

--
A complex system that works is invariably found to have evolved from a simple
system that works.
--John Gall's 15th law of Systemantics.

"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare

j.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu