bleistift2 to Programmer Humor@programming.devEnglish · 2 days agoThinking I could clean up my files in a SIGINT handlerimagemessage-square43fedilinkarrow-up1361arrow-down13
arrow-up1358arrow-down1imageThinking I could clean up my files in a SIGINT handlerbleistift2 to Programmer Humor@programming.devEnglish · 2 days agomessage-square43fedilink
minus-squarebleistift2OPlinkfedilinkarrow-up2·1 day agoI did try to catch all of these signals: | "SIGABRT" | "SIGALRM" | "SIGBUS" | "SIGCHLD" | "SIGCONT" | "SIGFPE" | "SIGHUP" | "SIGILL" | "SIGINT" | "SIGIO" | "SIGIOT" | "SIGKILL" | "SIGPIPE" | "SIGPOLL" | "SIGPROF" | "SIGPWR" | "SIGQUIT" | "SIGSEGV" | "SIGSTKFLT" | "SIGSTOP" | "SIGSYS" | "SIGTERM" | "SIGTRAP" | "SIGTSTP" | "SIGTTIN" | "SIGTTOU" | "SIGUNUSED" | "SIGURG" | "SIGUSR1" | "SIGUSR2" | "SIGVTALRM" | "SIGWINCH" | "SIGXCPU" | "SIGXFSZ" | "SIGBREAK" | "SIGLOST" | "SIGINFO";
minus-squarebleistift2OPlinkfedilinkEnglisharrow-up1·18 hours agoYep, in newer versions of node even attempting to do so will terminate the process.
I did try to catch all of these signals:
| "SIGABRT" | "SIGALRM" | "SIGBUS" | "SIGCHLD" | "SIGCONT" | "SIGFPE" | "SIGHUP" | "SIGILL" | "SIGINT" | "SIGIO" | "SIGIOT" | "SIGKILL" | "SIGPIPE" | "SIGPOLL" | "SIGPROF" | "SIGPWR" | "SIGQUIT" | "SIGSEGV" | "SIGSTKFLT" | "SIGSTOP" | "SIGSYS" | "SIGTERM" | "SIGTRAP" | "SIGTSTP" | "SIGTTIN" | "SIGTTOU" | "SIGUNUSED" | "SIGURG" | "SIGUSR1" | "SIGUSR2" | "SIGVTALRM" | "SIGWINCH" | "SIGXCPU" | "SIGXFSZ" | "SIGBREAK" | "SIGLOST" | "SIGINFO";
Good luck trapping the SIGKILL signal
Yep, in newer versions of node even attempting to do so will terminate the process.