this repo has no description
1
fork

Configure Feed

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

Do not fail on sigaction() with unsupported signal number (#250)

+12 -1
+12 -1
src/kernel/emulation/linux/signal/sigaction.c
··· 26 26 27 27 linux_signum = signum_bsd_to_linux(signum); 28 28 if (linux_signum == 0) 29 - return -EINVAL; 29 + { 30 + // Some software (e.g. Node.js) tries to set up handlers for all signals by 31 + // walking through all signal numbers incrementally. They end up hitting 32 + // signals that don't exist on Linux and then bail out if they receive 33 + // an error. 34 + // Fake that everyting is all right. 35 + 36 + if (osa != NULL) 37 + memset(osa, 0, sizeof(*osa)); 38 + 39 + return 0; 40 + } 30 41 31 42 if (nsa != NULL) 32 43 {