diff options
Diffstat (limited to 'runit/runsv.c')
-rw-r--r-- | runit/runsv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runit/runsv.c b/runit/runsv.c index 24a51f2b1..018a80eeb 100644 --- a/runit/runsv.c +++ b/runit/runsv.c | |||
@@ -486,25 +486,25 @@ int runsv_main(int argc, char **argv) | |||
486 | coe(svd[1].fdlock); | 486 | coe(svd[1].fdlock); |
487 | } | 487 | } |
488 | 488 | ||
489 | fifo_make("log/supervise/control"+4, 0600); | 489 | mkfifo("log/supervise/control"+4, 0600); |
490 | svd[0].fdcontrol = xopen("log/supervise/control"+4, O_RDONLY|O_NDELAY); | 490 | svd[0].fdcontrol = xopen("log/supervise/control"+4, O_RDONLY|O_NDELAY); |
491 | coe(svd[0].fdcontrol); | 491 | coe(svd[0].fdcontrol); |
492 | svd[0].fdcontrolwrite = xopen("log/supervise/control"+4, O_WRONLY|O_NDELAY); | 492 | svd[0].fdcontrolwrite = xopen("log/supervise/control"+4, O_WRONLY|O_NDELAY); |
493 | coe(svd[0].fdcontrolwrite); | 493 | coe(svd[0].fdcontrolwrite); |
494 | update_status(&svd[0]); | 494 | update_status(&svd[0]); |
495 | if (haslog) { | 495 | if (haslog) { |
496 | fifo_make("log/supervise/control", 0600); | 496 | mkfifo("log/supervise/control", 0600); |
497 | svd[1].fdcontrol = xopen("log/supervise/control", O_RDONLY|O_NDELAY); | 497 | svd[1].fdcontrol = xopen("log/supervise/control", O_RDONLY|O_NDELAY); |
498 | coe(svd[1].fdcontrol); | 498 | coe(svd[1].fdcontrol); |
499 | svd[1].fdcontrolwrite = xopen("log/supervise/control", O_WRONLY|O_NDELAY); | 499 | svd[1].fdcontrolwrite = xopen("log/supervise/control", O_WRONLY|O_NDELAY); |
500 | coe(svd[1].fdcontrolwrite); | 500 | coe(svd[1].fdcontrolwrite); |
501 | update_status(&svd[1]); | 501 | update_status(&svd[1]); |
502 | } | 502 | } |
503 | fifo_make("log/supervise/ok"+4, 0600); | 503 | mkfifo("log/supervise/ok"+4, 0600); |
504 | fd = xopen("log/supervise/ok"+4, O_RDONLY|O_NDELAY); | 504 | fd = xopen("log/supervise/ok"+4, O_RDONLY|O_NDELAY); |
505 | coe(fd); | 505 | coe(fd); |
506 | if (haslog) { | 506 | if (haslog) { |
507 | fifo_make("log/supervise/ok", 0600); | 507 | mkfifo("log/supervise/ok", 0600); |
508 | fd = xopen("log/supervise/ok", O_RDONLY|O_NDELAY); | 508 | fd = xopen("log/supervise/ok", O_RDONLY|O_NDELAY); |
509 | coe(fd); | 509 | coe(fd); |
510 | } | 510 | } |