File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -191,13 +191,6 @@ void WaitForInspectorDisconnect(Environment* env) {
191
191
#ifdef __POSIX__
192
192
void SignalExit (int signo, siginfo_t * info, void * ucontext) {
193
193
uv_tty_reset_mode ();
194
- #ifdef __FreeBSD__
195
- // FreeBSD has a nasty bug, see RegisterSignalHandler for details
196
- struct sigaction sa;
197
- memset (&sa, 0 , sizeof (sa));
198
- sa.sa_handler = SIG_DFL;
199
- CHECK_EQ (sigaction (signo, &sa, nullptr ), 0 );
200
- #endif
201
194
raise (signo);
202
195
}
203
196
#endif // __POSIX__
@@ -480,12 +473,7 @@ void RegisterSignalHandler(int signal,
480
473
struct sigaction sa;
481
474
memset (&sa, 0 , sizeof (sa));
482
475
sa.sa_sigaction = handler;
483
- #ifndef __FreeBSD__
484
- // FreeBSD has a nasty bug with SA_RESETHAND reseting the SA_SIGINFO, that is
485
- // in turn set for a libthr wrapper. This leads to a crash.
486
- // Work around the issue by manually setting SIG_DFL in the signal handler
487
476
sa.sa_flags = reset_handler ? SA_RESETHAND : 0 ;
488
- #endif
489
477
sigfillset (&sa.sa_mask );
490
478
CHECK_EQ (sigaction (signal, &sa, nullptr ), 0 );
491
479
}
You can’t perform that action at this time.
0 commit comments