diff options
author | peter <peter@FreeBSD.org> | 2004-04-15 01:01:56 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-04-15 01:01:56 +0000 |
commit | 3aa249bff61808355fd6b864b94fd531fd00b3b7 (patch) | |
tree | 48f5bc180abb032c255cbad668a4838647de32f2 /contrib/cvs/diff/util.c | |
parent | dfd3c578a82a6f926669c53ec72c55f7aba93228 (diff) | |
parent | 6045cae71a438a752980a395f03717a13cc22179 (diff) | |
download | FreeBSD-src-3aa249bff61808355fd6b864b94fd531fd00b3b7.zip FreeBSD-src-3aa249bff61808355fd6b864b94fd531fd00b3b7.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r128266,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/cvs/diff/util.c')
-rw-r--r-- | contrib/cvs/diff/util.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/cvs/diff/util.c b/contrib/cvs/diff/util.c index ff9cceb..744cf51 100644 --- a/contrib/cvs/diff/util.c +++ b/contrib/cvs/diff/util.c @@ -300,7 +300,7 @@ finish_output () if (paginate_flag && outfile != 0 && outfile != stdout) { #ifdef PR_PROGRAM - int wstatus; + int wstatus, w; if (ferror (outfile)) fatal ("write error"); # if ! HAVE_FORK @@ -308,7 +308,9 @@ finish_output () # else /* HAVE_FORK */ if (fclose (outfile) != 0) pfatal_with_name ("write error"); - if (waitpid (pr_pid, &wstatus, 0) < 0) + while ((w = waitpid (pr_pid, &wstatus, 0)) < 0 && errno == EINTR) + ; + if (w < 0) pfatal_with_name ("waitpid"); # endif /* HAVE_FORK */ if (wstatus != 0) |