Skip to content

Commit 938f1cc

Browse files
committed
change how signal handler raises fatal signal to enable core dump files
1 parent a743d12 commit 938f1cc

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)