this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix: pass LINUX_O_CLOEXEC

+3 -1
+3 -1
src/kernel/mach_server/client/lkm.c
··· 3 3 #include <fcntl.h> 4 4 #include <unistd.h> 5 5 6 + #define LINUX_O_CLOEXEC 02000000 7 + 6 8 int driver_fd = -1; 7 9 8 10 extern int __real_ioctl(int fd, int cmd, void* arg); ··· 26 28 // Ensure we get the same fd number, even if lower ones are available 27 29 if (driver_fd != -1 && driver_fd != new_driver_fd) 28 30 { 29 - dup3(new_driver_fd, driver_fd, O_CLOEXEC); 31 + dup3(new_driver_fd, driver_fd, LINUX_O_CLOEXEC); // native Linux syscall 30 32 close(new_driver_fd); 31 33 } 32 34 else