From 23dbb870c7ad1d82a5c2a967683158da54ab3469 Mon Sep 17 00:00:00 2001 From: sin Date: Fri, 7 Feb 2014 11:41:55 +0000 Subject: Allow fifopath to be NULL In that case we do not use the FIFO at all. --- sinit.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sinit.c') diff --git a/sinit.c b/sinit.c index 765d565..3942457 100644 --- a/sinit.c +++ b/sinit.c @@ -54,6 +54,9 @@ main(void) spawn(&rcinitarg); + if (!fifopath) + return EXIT_SUCCESS; + unlink(fifopath); umask(0); if (mkfifo(fifopath, 0600) < 0) -- cgit v1.2.3-54-g00ecf