diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2009-12-16 18:39:06 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2009-12-16 18:39:06 +0000 |
commit | 693fd5b56e51de2910a5681533033b9530650270 (patch) | |
tree | 652a4cdfda9874c0eac0ef801a8d266528dd6af1 /Src/init.c | |
parent | 74d17bc282cb7e9e0b0d73c87aff09ecf256dda7 (diff) | |
download | zsh-693fd5b56e51de2910a5681533033b9530650270.tar.gz zsh-693fd5b56e51de2910a5681533033b9530650270.tar.xz zsh-693fd5b56e51de2910a5681533033b9530650270.zip |
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.
Diffstat (limited to 'Src/init.c')
-rw-r--r-- | Src/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/init.c b/Src/init.c index cf5a6074d..123e20e85 100644 --- a/Src/init.c +++ b/Src/init.c @@ -1331,7 +1331,7 @@ VA_DCL pptbuf = unmetafy(promptexpand(lp ? *lp : 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); ret = shingetline(); |