this repo has no description
1
fork

Configure Feed

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

Fix sys_pipe() behavior to match the wrapper

+7 -2
+7 -2
src/kernel/emulation/linux/unistd/pipe.c
··· 9 9 10 10 ret = LINUX_SYSCALL(__NR_pipe, fd); 11 11 if (ret < 0) 12 - ret = errno_linux_to_bsd(ret); 12 + return errno_linux_to_bsd(ret); 13 13 14 - return ret; 14 + #if defined(__i386__) || defined(__x86_64__) 15 + __asm__ __volatile__("movl %0, %%edx" :: "m"(fd[1]) : "edx"); 16 + #else 17 + # warning Missing assembly! 18 + #endif 19 + return fd[0]; 15 20 } 16 21