From 211d626152f6d49272c499bc457833766b8f495b Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 27 Feb 2016 19:46:28 -0800 Subject: Remove unused MESS_SIZE define --- src/proc.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'src/proc.cpp') diff --git a/src/proc.cpp b/src/proc.cpp index e16688f0..be106d43 100644 --- a/src/proc.cpp +++ b/src/proc.cpp @@ -56,11 +56,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 */ @@ -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; } -- cgit v1.2.3