this repo has no description
1
fork

Configure Feed

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

Don't race for kqueue when closing descriptors

+5 -6
+5 -6
src/kernel/emulation/linux/unistd/close.c
··· 16 16 { 17 17 int ret; 18 18 19 + struct closing_descriptor_args args = { 20 + .fd = fd, 21 + }; 22 + lkm_call(NR_closing_descriptor, &args); 23 + 19 24 ret = LINUX_SYSCALL1(__NR_close, fd); 20 25 if (ret < 0) 21 26 ret = errno_linux_to_bsd(ret); 22 - else { 23 - struct closing_descriptor_args args = { 24 - .fd = fd, 25 - }; 26 - lkm_call(NR_closing_descriptor, &args); 27 - } 28 27 29 28 return ret; 30 29 }