1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/games/battlestar
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
..
battlestar.6 tidy here too; 2015-11-29 16:05:38 +00:00
battlestar.c if both stdout and stderr are redirected to a non-tty, pledge(2) will kill 2021-10-23 11:22:48 +00:00
command1.c the names com1 to com9 are reserved filenames on windows 2020-12-15 00:38:18 +00:00
command2.c the names com1 to com9 are reserved filenames on windows 2020-12-15 00:38:18 +00:00
command3.c the names com1 to com9 are reserved filenames on windows 2020-12-15 00:38:18 +00:00
command4.c the names com1 to com9 are reserved filenames on windows 2020-12-15 00:38:18 +00:00
command5.c the names com1 to com9 are reserved filenames on windows 2020-12-15 00:38:18 +00:00
command6.c the names com1 to com9 are reserved filenames on windows 2020-12-15 00:38:18 +00:00
command7.c the names com1 to com9 are reserved filenames on windows 2020-12-15 00:38:18 +00:00
cypher.c rm lists of hereditary wizards and bad users to ensure level playing field 2019-05-09 20:19:22 +00:00
dayfile.c
dayobjs.c
extern.h rm lists of hereditary wizards and bad users to ensure level playing field 2019-05-09 20:19:22 +00:00
fly.c Include only needed header files per each source file 2015-12-31 17:51:19 +00:00
getcom.c slightly reduce the difficulty of the adventure game that is reading 2018-02-07 20:22:23 +00:00
globals.c rm lists of hereditary wizards and bad users to ensure level playing field 2019-05-09 20:19:22 +00:00
init.c rm lists of hereditary wizards and bad users to ensure level playing field 2019-05-09 20:19:22 +00:00
Makefile the names com1 to com9 are reserved filenames on windows 2020-12-15 00:38:18 +00:00
misc.c
nightfile.c
nightobjs.c
parse.c Include only needed header files per each source file 2015-12-31 17:51:19 +00:00
pathnames.h
room.c Include only needed header files per each source file 2015-12-31 17:51:19 +00:00
save.c Include only needed header files per each source file 2015-12-31 17:51:19 +00:00
words.c Pull in <stdio.h> for NULL 2016-08-27 03:34:45 +00:00