From cc19203be2aab1adc4930b18e46d522005159412 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 1 May 2020 09:02:44 +0100 Subject: Add 'e' key in buffer mode to open the buffer in an editor. --- job.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'job.c') diff --git a/job.c b/job.c index 607f7138..6c1a3e09 100644 --- a/job.c +++ b/job.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -283,6 +284,12 @@ job_check_died(pid_t pid, int status) } if (job == NULL) return; + if (WIFSTOPPED(status)) { + if (WSTOPSIG(status) == SIGTTIN || WSTOPSIG(status) == SIGTTOU) + return; + killpg(job->pid, SIGCONT); + return; + } log_debug("job died %p: %s, pid %ld", job, job->cmd, (long) job->pid); job->status = status; -- cgit v1.2.3