diff options
author | axel <axel@liljencrantz.se> | 2005-10-08 00:08:57 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2005-10-08 00:08:57 +1000 |
commit | 1917ce96f418b04e43bf14d90cf2ddb352e2ebcd (patch) | |
tree | 10e5178ed437cfb05c2ed93aa37e346f01cd1683 /proc.c | |
parent | 8ff36deeb49e517ee076bb1a8db3d98adb6d7012 (diff) |
Add support for piping using other file descriptor than fd 1
darcs-hash:20051007140857-ac50b-314a47d98ccd09e837be7bd81ebe58d5144c3499.gz
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 23 |
1 files changed, 16 insertions, 7 deletions
@@ -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; |