diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-05-13 16:40:53 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-05-13 16:40:53 +0200 |
commit | ead349509e325aad720bb0349521a9e56e2ac7c0 (patch) | |
tree | 1ce3f3140ffde0828f77f8c2438825e36dfdd3a8 /src/login/inhibit.c | |
parent | 85c08dc013f9f99b58bc9b79284af0b35304237b (diff) | |
download | systemd-ead349509e325aad720bb0349521a9e56e2ac7c0.tar.gz |
replace more dup() by F_DUPFD_CLOEXEC
Diffstat (limited to 'src/login/inhibit.c')
-rw-r--r-- | src/login/inhibit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/inhibit.c b/src/login/inhibit.c index 48c2ec401f..ae3afdf9b7 100644 --- a/src/login/inhibit.c +++ b/src/login/inhibit.c @@ -64,7 +64,7 @@ static int inhibit(sd_bus *bus, sd_bus_error *error) { if (r < 0) return r; - r = dup(fd); + r = fcntl(fd, F_DUPFD_CLOEXEC, 3); if (r < 0) return -errno; |