ccanlint: don't setpgid on running commands: we want ^C to work!
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 7 Jun 2010 07:57:15 +0000 (17:27 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 7 Jun 2010 07:57:15 +0000 (17:27 +0930)
tools/tools.c

index 25917d35289244fa224652ad6f9a787a44f65919..8ce193cd226bd0905f7a6738c4f70eda4057fe1c 100644 (file)
@@ -99,7 +99,6 @@ static char *run_with_timeout(const void *ctx,
                    || open("/dev/null", O_RDONLY) != STDIN_FILENO)
                        exit(128);
 
-               setpgid(0, 0);
                signal(SIGALRM, killme);
                itim.it_interval.tv_sec = itim.it_interval.tv_usec = 0;
                itim.it_value.tv_sec = *timeout_ms / 1000;