Remove unused MESS_SIZE define

This commit is contained in:
ridiculousfish 2016-02-27 19:46:28 -08:00
parent e8aab9183e
commit 211d626152

View File

@ -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;
}