From: Fabrice Fontaine Date: Mon, 13 Jul 2020 08:43:51 +0000 (+0200) Subject: src/dhcpcd.c: fix build without fork X-Git-Tag: v9.2.0~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44f427f8e6bcc1116d37ff24bb1258473a2bec9c;p=thirdparty%2Fdhcpcd.git src/dhcpcd.c: fix build without fork Signed-off-by: Fabrice Fontaine --- diff --git a/src/dhcpcd.c b/src/dhcpcd.c index ee585aa4..b597a5c0 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -336,7 +336,7 @@ dhcpcd_daemonise(struct dhcpcd_ctx *ctx) #ifdef THERE_IS_NO_FORK eloop_timeout_delete(ctx->eloop, handle_exit_timeout, ctx); errno = ENOSYS; - return 0; + return; #else int i; unsigned int logopts = loggetopts(); @@ -2211,7 +2211,7 @@ printpidfile: ps_init(&ctx); #endif -#ifdef USE_SIGNALS +#if defined(USE_SIGNALS) && !defined(THERE_IS_NO_FORK) if (pipe(sigpipe) == -1) { logerr("pipe"); goto exit_failure;