Don't raise SIGXCPU while the process is being debugged. These mode
changes are expected, and reporting them doesn't provide any helpful
information to the application. Rather, it may raise error storms on the
application side.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>
---

 ksrc/nucleus/shadow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ksrc/nucleus/shadow.c b/ksrc/nucleus/shadow.c
index bcf3b8b..12b4073 100644
--- a/ksrc/nucleus/shadow.c
+++ b/ksrc/nucleus/shadow.c
@@ -667,7 +667,7 @@ static inline void request_syscall_restart(xnthread_t 
*thread,
                        __xn_error_return(regs,
                                          (sysflags & __xn_exec_norestart) ?
                                          -ERESTARTNOHAND : -ERESTARTSYS);
-                       notify = 1;
+                       notify = !xnthread_test_state(thread, XNDEBUG);
                }
 
                xnthread_clear_info(thread, XNKICKED);

_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to