this repo has no description
1
fork

Configure Feed

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

FIx fork/vfork again

+4 -2
+2 -1
src/kernel/libsyscall/sys/__fork.S
··· 103 103 L1: 104 104 #ifndef DARLING 105 105 orl %edx,%edx // CF=OF=0, ZF set if zero result 106 + jz L2 // parent, since r1 == 0 in parent, 1 in child 106 107 #else 107 108 testl %eax,%eax 109 + jnz L2 108 110 #endif 109 - jz L2 // parent, since r1 == 0 in parent, 1 in child 110 111 111 112 //child here... 112 113 xorq %rax, %rax
+2 -1
src/kernel/libsyscall/sys/__vfork.S
··· 132 132 L1: 133 133 #ifndef DARLING 134 134 testl %edx, %edx // CF=OF=0, ZF set if zero result 135 + jz L2 // parent, since r1 == 0 in parent, 1 in child 135 136 #else 136 137 testl %eax, %eax 138 + jnz L2 137 139 #endif 138 - jz L2 // parent, since r1 == 0 in parent, 1 in child 139 140 xorq %rax, %rax // zero rax 140 141 jmp *%rdi 141 142