mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-25 23:21:15 -03:00
Add support for piping using other file descriptor than fd 1
darcs-hash:20051007140857-ac50b-314a47d98ccd09e837be7bd81ebe58d5144c3499.gz
This commit is contained in:
23
proc.c
23
proc.c
@@ -565,13 +565,22 @@ int job_do_notification()
|
||||
j->notified = 1;
|
||||
if( !j->skip_notification )
|
||||
{
|
||||
fwprintf( stdout,
|
||||
L"fish: %ls %d, \'%ls\' terminated by signal %ls (%ls)",
|
||||
proc_is_job?L"Job":L"Process",
|
||||
proc_is_job?j->job_id:p->pid,
|
||||
j->command,
|
||||
sig2wcs(WTERMSIG(p->status)),
|
||||
sig_description( WTERMSIG(p->status) ) );
|
||||
if( proc_is_job )
|
||||
fwprintf( stdout,
|
||||
L"fish: Job %d, \'%ls\' terminated by signal %ls (%ls)",
|
||||
j->job_id,
|
||||
j->command,
|
||||
sig2wcs(WTERMSIG(p->status)),
|
||||
sig_description( WTERMSIG(p->status) ) );
|
||||
else
|
||||
fwprintf( stdout,
|
||||
L"fish: Process %d, \'%ls\' from job %d, \'%ls\' terminated by signal %ls (%ls)",
|
||||
p->pid,
|
||||
p->argv[0],
|
||||
j->job_id,
|
||||
j->command,
|
||||
sig2wcs(WTERMSIG(p->status)),
|
||||
sig_description( WTERMSIG(p->status) ) );
|
||||
tputs(clr_eol,1,&writeb);
|
||||
fwprintf (stdout, L"\n" );
|
||||
found=1;
|
||||
|
||||
Reference in New Issue
Block a user