From 693fd5b56e51de2910a5681533033b9530650270 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 16 Dec 2009 18:39:06 +0000 Subject: Check the return value of all pipe(), read(), and write() calls. Gets rid of all the remaining "ignoring return value" compiler warnings, and makes some read/write operations safer by ensuring that an EINTR is handled. --- Src/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/input.c') diff --git a/Src/input.c b/Src/input.c index 5d780f3c4..80f8ec8d5 100644 --- a/Src/input.c +++ b/Src/input.c @@ -257,7 +257,7 @@ inputline(void) int pptlen; pptbuf = unmetafy(promptexpand(ingetcpmptl ? *ingetcpmptl : NULL, 0, NULL, NULL, NULL), &pptlen); - write(2, (WRITE_ARG_2_T)pptbuf, pptlen); + write_loop(2, (WRITE_ARG_2_T)pptbuf, pptlen); free(pptbuf); } ingetcline = shingetline(); -- cgit v1.2.3