mirror of
https://github.com/Interlisp/maiko.git
synced 2026-03-04 10:24:43 +00:00
killpg is POSIX, so we can rely on it now. (#150)
This removes some usages of the SYSVONLY flag and lets us assume the existence of `killpg`. It also updates a bit of code to accurately populate the `pgrp` variable using `tcgetpgrp` rather than an ioctl.
This commit is contained in:
@@ -912,13 +912,8 @@ and do a 'v' before trying anything else.";
|
||||
case SIGHUP:
|
||||
sprintf(errormsg, "HANGUP signalled (code %d) at address %p.\n%s", code, addr, stdmsg);
|
||||
/* Assume that a user tried to exit UNIX shell */
|
||||
#ifdef SYSVONLY
|
||||
kill(0, SIGKILL);
|
||||
exit(0);
|
||||
#else
|
||||
killpg(getpgrp(), SIGKILL);
|
||||
exit(0);
|
||||
#endif /* SYSVONLY */
|
||||
break;
|
||||
#endif /* SIGHUP */
|
||||
case SIGFPE:
|
||||
|
||||
Reference in New Issue
Block a user