1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/games/cribbage
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
..
cards.c Include only needed header files per each source file 2015-12-31 18:10:19 +00:00
crib.c if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
cribbage.6 Delete cribbage logging. Was never enabled and no point in enabling it. 2015-03-12 02:19:10 +00:00
cribbage.h Include only needed header files per each source file 2015-12-31 18:10:19 +00:00
cribbage.n
cribcur.h
deck.h Include only needed header files per each source file 2015-12-31 18:10:19 +00:00
extern.c Include only needed header files per each source file 2015-12-31 18:10:19 +00:00
instr.c As per style(9), remove remaining lint-style comments from games/ 2016-01-10 13:35:09 +00:00
io.c As per style(9), remove remaining lint-style comments from games/ 2016-01-10 13:35:09 +00:00
Makefile Delete cribbage logging. Was never enabled and no point in enabling it. 2015-03-12 02:19:10 +00:00
pathnames.h Delete cribbage logging. Was never enabled and no point in enabling it. 2015-03-12 02:19:10 +00:00
score.c Include only needed header files per each source file 2015-12-31 18:10:19 +00:00
support.c Include only needed header files per each source file 2015-12-31 18:10:19 +00:00