aboutsummaryrefslogtreecommitdiff
path: root/runit/runsv.c
diff options
context:
space:
mode:
Diffstat (limited to 'runit/runsv.c')
-rw-r--r--runit/runsv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/runit/runsv.c b/runit/runsv.c
index bd4a81eee..d5bfd4e89 100644
--- a/runit/runsv.c
+++ b/runit/runsv.c
@@ -420,7 +420,7 @@ int runsv_main(int argc, char **argv)
420 if (!argv[1] || argv[2]) usage(); 420 if (!argv[1] || argv[2]) usage();
421 dir = argv[1]; 421 dir = argv[1];
422 422
423 if (pipe(selfpipe) == -1) fatal_cannot("create selfpipe"); 423 xpipe(selfpipe);
424 coe(selfpipe[0]); 424 coe(selfpipe[0]);
425 coe(selfpipe[1]); 425 coe(selfpipe[1]);
426 ndelay_on(selfpipe[0]); 426 ndelay_on(selfpipe[0]);
@@ -456,8 +456,7 @@ int runsv_main(int argc, char **argv)
456 taia_now(&svd[1].start); 456 taia_now(&svd[1].start);
457 if (stat("log/down", &s) != -1) 457 if (stat("log/down", &s) != -1)
458 svd[1].want = W_DOWN; 458 svd[1].want = W_DOWN;
459 if (pipe(logpipe) == -1) 459 xpipe(logpipe);
460 fatal_cannot("create log pipe");
461 coe(logpipe[0]); 460 coe(logpipe[0]);
462 coe(logpipe[1]); 461 coe(logpipe[1]);
463 } 462 }