]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/login/inhibit.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / login / inhibit.c
index 6184d10cde57ad04935e697b7f1d71cf604d3ed2..7cd2fd3e6688b9cdac378140c9cc9628d02bc10a 100644 (file)
@@ -287,7 +287,7 @@ static int run(int argc, char *argv[]) {
                 _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
                 _cleanup_strv_free_ char **arguments = NULL;
                 _cleanup_free_ char *w = NULL;
-                _cleanup_close_ int fd = -1;
+                _cleanup_close_ int fd = -EBADF;
                 pid_t pid;
 
                 /* Ignore SIGINT and allow the forked process to receive it */