1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/games/mille
mestre bda84ce940 if both stdout and stderr are redirected to a non-tty, pledge(2) will kill
ncurses applications, e.g.:

/usr/games/worms 2>&1 | cat

solve this by only calling pledge(2) after initscr(3) is set and done, or
whatever function that calls it. since pledge(2) is called later now the
promises might be reduced, but this a diff for another day.

found by naddy@ almost a year ago, discussed with him deraadt@ and tb@
ok tb@
2021-10-23 11:22:48 +00:00
..
comp.c ANSIfy mille(6) 2016-01-08 18:09:59 +00:00
end.c ANSIfy mille(6) 2016-01-08 18:09:59 +00:00
extern.c Headers cleanup and also the following: 2016-01-08 18:05:58 +00:00
init.c ANSIfy mille(6) 2016-01-08 18:09:59 +00:00
Makefile
mille.6
mille.c if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
mille.h Headers cleanup and also the following: 2016-01-08 18:05:58 +00:00
misc.c ANSIfy mille(6) 2016-01-08 18:09:59 +00:00
move.c ANSIfy mille(6) 2016-01-08 18:09:59 +00:00
print.c ANSIfy mille(6) 2016-01-08 18:09:59 +00:00
roll.c ANSIfy mille(6) 2016-01-08 18:09:59 +00:00
save.c When system calls indicate an error they return -1, not some arbitrary 2019-06-28 13:32:41 +00:00
types.c ANSIfy mille(6) 2016-01-08 18:09:59 +00:00
varpush.c When system calls indicate an error they return -1, not some arbitrary 2019-06-28 13:32:41 +00:00