]> sourceware.org Git - lvm2.git/commitdiff
systemd: O_CLOEXEC not needed in activation generator
authorPeter Rajnoha <prajnoha@redhat.com>
Wed, 1 Aug 2012 06:57:12 +0000 (08:57 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Wed, 1 Aug 2012 06:57:12 +0000 (08:57 +0200)
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

index 992100499b78bd88d41f472f2daea39bb2cd4d36..85420b8b49981f92fb8f40034f4f6c2ba8884105 100644 (file)
@@ -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");
This page took 0.032512 seconds and 5 git commands to generate.