mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-28 20:41:30 +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:
@@ -344,11 +344,7 @@ LispPTR suspend_lisp(LispPTR *args) {
|
||||
/* Send a terminal-stop signal to the whole process-group, not
|
||||
just this process, so that if we are running as part of a
|
||||
C-shell file the shell will be suspended too. */
|
||||
#ifdef SYSVONLY
|
||||
kill(0, SIGTSTP);
|
||||
#else
|
||||
killpg(getpgrp(), SIGTSTP);
|
||||
#endif /* SYSVONLY */
|
||||
|
||||
OSMESSAGE_PRINT(printf("resuming\n"));
|
||||
device_after_raid();
|
||||
|
||||
Reference in New Issue
Block a user