From e309586aebec5ab034c89536620c0b102b8a366c Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Wed, 1 Aug 2012 08:57:12 +0200 Subject: 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. --- scripts/lvm2_activation_generator_systemd_red_hat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit