From 938f1cc67da371ae92a2270fe8a5e345c980d96d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=B6ftner?= Date: Fri, 30 Jan 2026 11:36:57 +0100 Subject: [PATCH] change how signal handler raises fatal signal to enable core dump files --- src/rtapi/uspace_rtapi_app.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rtapi/uspace_rtapi_app.cc b/src/rtapi/uspace_rtapi_app.cc index e8d3615f4d0..d72acf72735 100644 --- a/src/rtapi/uspace_rtapi_app.cc +++ b/src/rtapi/uspace_rtapi_app.cc @@ -693,7 +693,9 @@ static void signal_handler(int sig, siginfo_t * /*si*/, void * /*uctx*/) "rtapi_app: caught signal %d - dumping core\n", sig); sleep(1); // let syslog drain signal(sig, SIG_DFL); - raise(sig); + // for reasons unknown raise(sig); doesn't lead to core dump file + // but this will + kill(getpid(), sig); break; } exit(1);