login

<     >

2015-04-16 22:08:17 (UTC-03:00)

Marcel Rodrigues <marcelgmr@gmail.com>

Do not interfere in subprocess signal handling.

diff --git a/rover.c b/rover.c
index 92dcfc5..5bad869 100644
--- a/rover.c
+++ b/rover.c
@@ -595,7 +595,12 @@ spawn()
 {
     pid_t pid;
     int status;
+    struct sigaction sa;
 
+    memset(&sa, 0, sizeof (struct sigaction));
+    sa.sa_handler = SIG_DFL;
+    sigaction(SIGSEGV, &sa, NULL);
+    sigaction(SIGWINCH, &sa, NULL);
     pid = fork();
     if (pid > 0) {
         /* fork() succeeded. */