Do not use trace in the signal handler.
It can apparently cause the main thread to spin or deadlock.
---
 src/ntf/ntfd/ntfs_main.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/ntf/ntfd/ntfs_main.c b/src/ntf/ntfd/ntfs_main.c
index 55ecc9e51..d74ddc926 100644
--- a/src/ntf/ntfd/ntfs_main.c
+++ b/src/ntf/ntfd/ntfs_main.c
@@ -137,7 +137,10 @@ static void sigusr1_handler(int sig)
        (void)sig;
        signal(SIGUSR1, SIG_IGN);
        ncs_sel_obj_ind(&usr1_sel_obj);
-       TRACE("Got USR1 signal");
+       /* Do not use trace in the signal handler
+        * It can apparently cause the main thread
+        * to spin or deadlock. See ticket #3245.
+        */
 }
 
 #if 0
-- 
2.25.1



_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to