diff options
-rw-r--r-- | src/sd-fds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sd-fds.c b/src/sd-fds.c index 477da520..d904954c 100644 --- a/src/sd-fds.c +++ b/src/sd-fds.c @@ -37,9 +37,9 @@ int sd_fds_init() else { init_done = 1; rc = sd_listen_fds_with_names(1, &names); - if (rc < 0) { + if (rc <= 0) { errno = -rc; - rc = -1; + rc = -!!rc; names = &null; } } |