Add 'e' key in buffer mode to open the buffer in an editor.

This commit is contained in:
Nicholas Marriott
2020-05-01 09:02:44 +01:00
parent 7af5817245
commit cc19203be2
11 changed files with 176 additions and 4 deletions

7
job.c
View File

@ -19,6 +19,7 @@
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <signal.h>
@ -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;