summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2012-08-01 08:57:12 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2012-08-01 08:57:12 +0200
commite309586aebec5ab034c89536620c0b102b8a366c (patch)
tree0cbf9c21bf1603ae1b9fc54762893d51dc794885
parentc6cc871df845ea4c810122a59606c3c593d15772 (diff)
downloadlvm2-e309586aebec5ab034c89536620c0b102b8a366c.tar.gz
lvm2-e309586aebec5ab034c89536620c0b102b8a366c.tar.xz
lvm2-e309586aebec5ab034c89536620c0b102b8a366c.zip
systemd: O_CLOEXEC not needed in activation generator
O_CLOEXEC not actually needed, this is just a simple program, it is not supposed to fork/exec anywhere and anytime in the future.
-rw-r--r--scripts/lvm2_activation_generator_systemd_red_hat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lvm2_activation_generator_systemd_red_hat.c b/scripts/lvm2_activation_generator_systemd_red_hat.c
index 99210049..85420b8b 100644
--- a/scripts/lvm2_activation_generator_systemd_red_hat.c
+++ b/scripts/lvm2_activation_generator_systemd_red_hat.c
@@ -144,7 +144,7 @@ int main(int argc, char *argv[])
const char *dir;
int r = EXIT_SUCCESS;
- kmsg_fd = open(KMSG_DEV_PATH, O_WRONLY|O_NOCTTY|O_CLOEXEC);
+ kmsg_fd = open(KMSG_DEV_PATH, O_WRONLY|O_NOCTTY);
if (argc > 1 && argc != 4) {
kmsg("LVM: Activation generator takes three or no arguments.\n");