Mercurial > pt1.oyama
diff recpt1/recpt1.c @ 84:1b61fd7c6fde
should just shutdown when write() fails.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 13 Jan 2010 17:14:43 +0900 |
parents | 6e3bb2c0c5b6 |
children | 28ba9315a30c |
line wrap: on
line diff
--- a/recpt1/recpt1.c Sat Jan 09 12:50:24 2010 +0900 +++ b/recpt1/recpt1.c Wed Jan 13 17:14:43 2010 +0900 @@ -365,7 +365,7 @@ free(qbuf); /* normal exit */ - if(f_exit && !p_queue->num_used && !file_err) { + if((f_exit && !p_queue->num_used) || file_err) { buf = sbuf; /* default */ @@ -377,7 +377,7 @@ buf = dbuf; } - if(!fileless) { + if(!fileless && !file_err) { wc = write(wfd, buf.data, buf.size); if(wc < 0) { perror("write");