runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 5a03548da54fc0b898de414ca6009cf2bd548089
parent 9fa0f962faf54b82ef26c265f272dcec7639a0e1
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Sun,  6 Oct 2024 17:07:07 +0200

swap fifo_make for mkfifo (part 2)

Diffstat:
Msrc/runsv.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/runsv.c b/src/runsv.c @@ -477,7 +477,7 @@ int main(int argc, char **argv) { coe(svd[1].fdlock); } - fifo_make("supervise/control", 0600); + mkfifo("supervise/control", 0600); if (stat("supervise/control", &s) == -1) fatal("unable to stat supervise/control"); if (!S_ISFIFO(s.st_mode)) @@ -490,7 +490,7 @@ int main(int argc, char **argv) { coe(svd[0].fdcontrolwrite); update_status(&svd[0]); if (haslog) { - fifo_make("log/supervise/control", 0600); + mkfifo("log/supervise/control", 0600); if (stat("supervise/control", &s) == -1) fatal("unable to stat log/supervise/control"); if (!S_ISFIFO(s.st_mode)) @@ -503,12 +503,12 @@ int main(int argc, char **argv) { coe(svd[1].fdcontrolwrite); update_status(&svd[1]); } - fifo_make("supervise/ok",0600); + mkfifo("supervise/ok",0600); if ((fd =open_read("supervise/ok")) == -1) fatal("unable to read supervise/ok"); coe(fd); if (haslog) { - fifo_make("log/supervise/ok",0600); + mkfifo("log/supervise/ok",0600); if ((fd =open_read("log/supervise/ok")) == -1) fatal("unable to read log/supervise/ok"); coe(fd);