Check that ee's standard input and output is a terminal.
Do not ignore all the signals in range [1..24]. PR: 65892 MFC after: 2 weeks
This commit is contained in:
parent
2fdf5be172
commit
0acb526b67
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137249
@ -544,10 +544,11 @@ main(argc, argv) /* beginning of main program */
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
int counter;
|
||||
|
||||
for (counter = 1; counter < 24; counter++)
|
||||
signal(counter, SIG_IGN);
|
||||
/* Always read from (and write to) a terminal. */
|
||||
if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO)) {
|
||||
fprintf(stderr, "ee's standard input and output must be a terminal\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
signal(SIGCHLD, SIG_DFL);
|
||||
signal(SIGSEGV, SIG_DFL);
|
||||
|
Loading…
Reference in New Issue
Block a user