commit - 2c0a0d66f9ad7d4ac44536836679ed1d27a8ce33
commit + c632297d7b6d7267543afeb7b052dc8a970cdefe
blob - 0b04e3f959ed7aab07534ee9bb5cb4a63e0dd93f
blob + bbdfb381160453fb6cdcae5a97db2425cc3b4f3f
--- lib/sigs.c
+++ lib/sigs.c
argv[i++] = NULL;
assert(i <= nitems(argv));
- if (pipe2(in_pfd, 0) == -1)
- return got_error_from_errno("pipe2");
- if (pipe2(out_pfd, 0) == -1)
- return got_error_from_errno("pipe2");
+ if (pipe(in_pfd) == -1)
+ return got_error_from_errno("pipe");
+ if (pipe(out_pfd) == -1)
+ return got_error_from_errno("pipe");
pid = fork();
if (pid == -1) {
argv[i++] = NULL;
assert(i <= nitems(argv));
- if (pipe2(in_pfd, 0) == -1) {
- error = got_error_from_errno("pipe2");
+ if (pipe(in_pfd) == -1) {
+ error = got_error_from_errno("pipe");
goto done;
}
- if (pipe2(out_pfd, 0) == -1) {
- error = got_error_from_errno("pipe2");
+ if (pipe(out_pfd) == -1) {
+ error = got_error_from_errno("pipe");
goto done;
}