Return to write.c CVS log | Up to [local] / src / usr.bin / write |
version 1.30, 2015/10/06 03:25:02 | version 1.31, 2015/10/09 01:37:09 | ||
---|---|---|---|
|
|
||
* Unfortunately this is rather late - well after utmp | * Unfortunately this is rather late - well after utmp | ||
* parsing, then pinned by the tty open and setresgid | * parsing, then pinned by the tty open and setresgid | ||
*/ | */ | ||
if (tame("stdio", NULL) == -1) | if (pledge("stdio", NULL) == -1) | ||
err(1, "tame"); | err(1, "pledge"); | ||
(void)signal(SIGINT, done); | (void)signal(SIGINT, done); | ||
(void)signal(SIGHUP, done); | (void)signal(SIGHUP, done); |