diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2018-06-12 16:40:22 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2018-06-12 16:40:22 +0000 |
| commit | 5a43dca273c2628bb4936deb168acb063da5cee9 (patch) | |
| tree | 029f9085e1c91dcbfbe727aea23e1c787cbdc055 /usr.bin/diff | |
| parent | a9063ba1d79492a55b80a19409ee8e1dfb33bcc2 (diff) | |
Notes
Diffstat (limited to 'usr.bin/diff')
| -rw-r--r-- | usr.bin/diff/pr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/diff/pr.c b/usr.bin/diff/pr.c index eaf6e37f9f4f..ce8620e14324 100644 --- a/usr.bin/diff/pr.c +++ b/usr.bin/diff/pr.c @@ -58,7 +58,8 @@ start_pr(char *file1, char *file2) signal(SIGPIPE, SIG_IGN); fflush(stdout); rewind(stdout); - pipe(pfd); + if (pipe(pfd) == -1) + err(2, "pipe"); switch ((pid = pdfork(&pr_pd, PD_CLOEXEC))) { case -1: status |= 2; |
