mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-20 23:45:11 +08:00
Remove unused MESS_SIZE define
This commit is contained in:
parent
e8aab9183e
commit
211d626152
26
src/proc.cpp
26
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user