1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-21 23:18:00 -08:00
openbsd-src/games/gomoku
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
..
bdinit.c ANSIfy gomoku(6) and change a char* to u_char* 2016-01-08 21:38:33 +00:00
bdisp.c ANSIfy gomoku(6) and change a char* to u_char* 2016-01-08 21:38:33 +00:00
gomoku.6 obvious cases of missing .An; 2014-09-08 01:27:54 +00:00
gomoku.h More cleanup and sorting on header section 2016-01-04 17:33:24 +00:00
main.c if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
Makefile
makemove.c ANSIfy gomoku(6) and change a char* to u_char* 2016-01-08 21:38:33 +00:00
pickmove.c ANSIfy gomoku(6) and change a char* to u_char* 2016-01-08 21:38:33 +00:00
stoc.c ANSIfy gomoku(6) and change a char* to u_char* 2016-01-08 21:38:33 +00:00