this repo has no description
1
fork

Configure Feed

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

Add kqueue_dup and kqueue_atfork calls where appropriate

+11
+6
src/kernel/emulation/linux/fcntl/fcntl.c
··· 24 24 extern int sprintf(char *str, const char *format, ...); 25 25 long sys_readlink(const char* path, char* buf, unsigned long bsize); 26 26 27 + extern void kqueue_dup(int oldfd, int newfd); 28 + 27 29 static short int flock_type_linux_to_bsd(short int linux) { 28 30 switch (linux) { 29 31 case LINUX_F_RDLCK: return F_RDLCK; ··· 140 142 bsd_struct->l_len = linux_struct->l_len; 141 143 bsd_struct->l_pid = linux_struct->l_pid; 142 144 } break; 145 + case F_DUPFD: 146 + case F_DUPFD_CLOEXEC: 147 + kqueue_dup(fd, ret); 148 + break; 143 149 } 144 150 145 151 return ret;
+5
src/libsystem/init.c
··· 377 377 378 378 // second call client parent handlers registered with pthread_atfork() 379 379 _pthread_atfork_child_handlers(); 380 + 381 + #ifdef DARLING 382 + extern void kqueue_atfork(void); 383 + kqueue_atfork(); 384 + #endif 380 385 } 381 386 382 387 #if CURRENT_VARIANT_asan