plan9fox/sys
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
..
doc /sys/doc: fix mkfile to and remove files that now can be regenerated 2017-05-09 16:23:48 +02:00
games/lib fortunes: As much as I'd love to I feel I have to let it go -- rminnich 2020-04-18 21:37:53 -04:00
include libdraw: add bezierpts 2021-01-09 12:20:49 -08:00
lib dpost prologue: update /radicalex to fix square displacement (thanks umbraticus and Ethan) 2021-01-17 14:02:17 +01:00
man dd(1): update manpage to match program 2021-01-19 15:18:57 -08:00
src ape/libap: fix _startbuf, check rfork return (thanks pixelherodev) 2021-01-19 19:56:38 -08:00