Skip to content

Commit 5b13d3b

Browse files
authored
Merge pull request #3759 from rmu75/rs/enable-coredumps-3645
change how signal handler raises fatal signal to enable core dump files
2 parents 644ef11 + 938f1cc commit 5b13d3b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/rtapi/uspace_rtapi_app.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,9 @@ static void signal_handler(int sig, siginfo_t * /*si*/, void * /*uctx*/)
693693
"rtapi_app: caught signal %d - dumping core\n", sig);
694694
sleep(1); // let syslog drain
695695
signal(sig, SIG_DFL);
696-
raise(sig);
696+
// for reasons unknown raise(sig); doesn't lead to core dump file
697+
// but this will
698+
kill(getpid(), sig);
697699
break;
698700
}
699701
exit(1);

0 commit comments

Comments
 (0)