From f653fbfaf4bfea2a21e7d9b6dfebc9ceaa9ca58d Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Tue, 25 Jul 2017 22:59:46 -0500 Subject: [PATCH] fixup! Using SIGSTOP/SIGCONT instead of mmap & sem_t to synchronize jobs --- src/exec.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/exec.cpp b/src/exec.cpp index c5c60ab9c..afa69b2a0 100644 --- a/src/exec.cpp +++ b/src/exec.cpp @@ -513,10 +513,6 @@ void exec_job(parser_t &parser, job_t *j) { const bool pipes_to_next_command = !p->is_last_in_job; bool command_blocked = false; - //these semaphores will be used to make sure the first process lives long enough for the - //next process in the chain to open its handles, process group, etc. - //this child will block on this one, the next child will have to call sem_post against it. - // The pipes the current process write to and read from. Unfortunately these can't be just // allocated on the stack, since j->io wants shared_ptr. //