s4-server: exit with status 127 on SIGTERM
authorAndrew Tridgell <tridge@samba.org>
Sat, 2 Oct 2010 19:44:28 +0000 (12:44 -0700)
committerAndrew Tridgell <tridge@samba.org>
Sun, 3 Oct 2010 04:11:52 +0000 (21:11 -0700)
this ensures that make test detects a failure if samba is killed by
SIGTERM

source4/smbd/server.c

index 60269d003e76b8e30771a354b4a50a3e5013a7ce..65364556fc042a70682e3836037452700d6b3e8c 100644 (file)
@@ -117,7 +117,7 @@ static void sig_term(int sig)
        }
 #endif
        DEBUG(0,("Exiting pid %d on SIGTERM\n", (int)getpid()));
-       exit(0);
+       exit(127);
 }
 
 /*