travis: Enable ppc64le Travis builds
[petitboot] / discover / ipmi.c
index 2aaf114c20c5bb248141d01b0c786ff26dcd402e..d652e9fbb966187384ea890780bf870bc8797a3b 100644 (file)
@@ -201,7 +201,7 @@ struct ipmi *ipmi_open(void *ctx)
        struct ipmi *ipmi;
        int fd;
 
-       fd = open(ipmi_devnode, O_RDWR);
+       fd = open(ipmi_devnode, O_RDWR | O_CLOEXEC);
        if (fd < 0) {
                pb_log("IPMI: can't open IPMI device %s: %m\n", ipmi_devnode);
                return NULL;