diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2016-02-27 19:46:28 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2016-02-27 19:46:28 -0800 |
commit | 211d626152f6d49272c499bc457833766b8f495b (patch) | |
tree | de0e7d549b7ec84bfe2b7c90d2adcfbeadb5a49a /src/proc.cpp | |
parent | e8aab9183e5830d591a1f82d746a4a17294cf250 (diff) |
Remove unused MESS_SIZE define
Diffstat (limited to 'src/proc.cpp')
-rw-r--r-- | src/proc.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/proc.cpp b/src/proc.cpp index e16688f0..be106d43 100644 --- a/src/proc.cpp +++ b/src/proc.cpp @@ -57,11 +57,6 @@ Some of the code in this file is based on code from the Glibc manual. #include "output.h" /** - Size of message buffer -*/ -#define MESS_SIZE 256 - -/** Size of buffer for reading buffered output */ #define BUFFER_SIZE 4096 @@ -405,25 +400,11 @@ static void handle_child_status(pid_t pid, int status) { if (pid == p->pid) { - /* snprintf( mess, - MESS_SIZE, - "Process %d is %ls from job %ls\n", - (int) pid, p->actual_cmd, j->command ); - write( 2, mess, strlen(mess )); - */ - mark_process_status(j, p, status); if (p->completed && prev != 0) { if (!prev->completed && prev->pid) { - /* snprintf( mess, - MESS_SIZE, - "Kill previously uncompleted process %ls (%d)\n", - prev->actual_cmd, - prev->pid ); - write( 2, mess, strlen(mess )); - */ kill(prev->pid,SIGPIPE); } } @@ -467,13 +448,6 @@ static void handle_child_status(pid_t pid, int status) There have been bugs in both subshell handling and in builtin handling that have caused this previously... */ - /* snprintf( mess, - MESS_SIZE, - "Process %d not found by %d\n", - (int) pid, (int)getpid() ); - - write( 2, mess, strlen(mess )); - */ } return; } |