1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/games/atc
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
..
games
atc.6 fix unmarked/ignored descriptive mix up; 2020-12-13 15:47:32 +00:00
BUGS
def.h Remove useless #ifndef in atc(6) and pom(6). 2016-12-01 20:08:59 +00:00
extern.c About 13 years ago when the idiom srandom(time()), and sometimes 2016-01-03 14:38:16 +00:00
extern.h Include only needed header files per each source file 2015-12-31 16:50:29 +00:00
grammar.y we're not shooting yacception 2017-07-07 12:41:59 +00:00
graphics.c Pull in <sys/time.h> for struct timespec, gettimeofday(), clock_gettime(), 2016-08-27 02:02:44 +00:00
input.c Include only needed header files per each source file 2015-12-31 16:50:29 +00:00
lex.l have bsd.prog.mk/bsd.lib.mk generate .y -> .c/.h rules without intermediate 2017-07-09 14:04:50 +00:00
list.c Include only needed header files per each source file 2015-12-31 16:50:29 +00:00
log.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 Remove operations that "touch" scorefiles at install time. 2015-11-25 23:18:11 +00:00
pathnames.h Add pledge support and move score file to $HOME. 2015-11-29 15:23:38 +00:00
struct.h Include only needed header files per each source file 2015-12-31 16:50:29 +00:00
update.c add missing 'void' 2016-01-08 13:40:05 +00:00