1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/games/hangman
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
..
endgame.c More cleanup and sorting on header section 2016-01-04 17:33:24 +00:00
extern.c Include only needed header files per each source file 2015-12-31 15:20:36 +00:00
getguess.c More cleanup and sorting on header section 2016-01-04 17:33:24 +00:00
getword.c KNF: Break an overlong line. No binary change. 2016-09-11 09:32:47 +00:00
hangman.6 By popular demand, allow any ELF file to be passed to -d as a word list, in 2015-02-07 01:37:30 +00:00
hangman.h Include only needed header files per each source file 2015-12-31 15:20:36 +00:00
ksyms.c When system calls indicate an error they return -1, not some arbitrary 2019-06-28 13:32:41 +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 zap trailing newlines; "go for it" deraadt 2014-07-16 20:00:14 +00:00
pathnames.h
playgame.c Include only needed header files per each source file 2015-12-31 15:20:36 +00:00
prdata.c Include only needed header files per each source file 2015-12-31 15:20:36 +00:00
prman.c Include only needed header files per each source file 2015-12-31 15:20:36 +00:00
prword.c Include only needed header files per each source file 2015-12-31 15:20:36 +00:00
setup.c Include only needed header files per each source file 2015-12-31 15:20:36 +00:00