shithub: npe

Download patch

ref: 1882a2e5945c9003187dd2b9a897572eee32a9e7
parent: 0868679b9edd13f31d774ab6176ae4e10cc7e543
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Thu Mar 18 12:04:22 EDT 2021

sigaction: print received signal information

--- a/libnpe/sigaction.c
+++ b/libnpe/sigaction.c
@@ -8,8 +8,10 @@
 handler(void*, char *s)
 {
 	/* kill is kill */
-	if(strcmp(s, "kill") != 0 && strcmp(s, "threadint") != 0)
+	if(strcmp(s, "kill") != 0 && strcmp(s, "threadint") != 0){
+		fprint(2, "%s: %s\n", threadgetname(), s);
 		last(SIGSEGV);
+	}
 	return 0;
 }