plan9fox/sys/src/ape
Ori Bernstein 1047b53efc ape/libap: fix _startbuf, check rfork return (thanks pixelherodev)
When _startbuf is invoked, it would crash on the second invocation
if creating a mux segment failed. This is because the first attempt
would assign the return value -1 to the global mux variable, and
the second attempt would notice that the global mux was not nil,
and would attempt to use it.

This change only assigns to the global variable if the allocation
of the segment was a success.

While we're here, we should also check the return of the rfork call.
2021-01-19 19:56:38 -08:00
..
9src ape: simplify mkfile (thanks amavect) 2020-07-16 15:22:42 -07:00
cmd ape: simplify mkfile (thanks amavect) 2020-07-16 15:22:42 -07:00
lib ape/libap: fix _startbuf, check rfork return (thanks pixelherodev) 2021-01-19 19:56:38 -08:00
config Turn on warnings when building libap. 2019-06-21 10:00:58 -07:00
mkfile ape/mkfile: work arround fake "command line arguments" rule matching 2012-08-08 21:36:42 +02:00