this repo has no description
1
fork

Configure Feed

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

Fixed vfork() and setting cloexec on /dev/mach fd, this fixes tcsh and bash respectively

+7 -4
+6 -3
src/kernel/libsyscall/bsdsyscalls/___vfork.S
··· 79 79 testl %edx, %edx // CF=OF=0, ZF set if zero result 80 80 jz L2 // parent, since r1 == 0 in parent, 1 in child 81 81 xorl %eax, %eax // zero eax 82 - jmp *%ecx 82 + //jmp *%ecx 83 + ret 83 84 84 85 L2: 85 86 GET_CURRENT_PID 86 87 lock 87 88 incl __current_pid 88 - jmp *%ecx 89 + //jmp *%ecx 90 + ret 89 91 90 92 #elif defined(__x86_64__) 91 93 ··· 133 135 jnz L2 134 136 #endif 135 137 xorq %rax, %rax // zero rax 136 - jmp *%rdi 138 + //jmp *%rdi 139 + ret 137 140 138 141 L2: 139 142 movq __current_pid@GOTPCREL(%rip), %rdx
+1 -1
src/kernel/mach_server/client/lkm.c
··· 64 64 sys_close(driver_fd); 65 65 66 66 driver_fd = d; 67 - sys_fcntl(driver_fd, F_SETFD, O_CLOEXEC); 67 + sys_fcntl(driver_fd, F_SETFD, FD_CLOEXEC); 68 68 } 69 69 } 70 70