Explorar o código

If we exit with an error, set the returned status code for the shell.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1712 fd59a12c-fef9-0310-b244-a6a79926bd2f
Christine Caulfield %!s(int64=17) %!d(string=hai) anos
pai
achega
91458d92fa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      exec/util.c

+ 1 - 1
exec/util.c

@@ -87,7 +87,7 @@ void _corosync_exit_error (
 {
 	log_printf (LOG_LEVEL_ERROR, "AIS Executive exiting "
 		"with status %d at %s:%u.\n", err, file, line);
-	exit (EXIT_FAILURE);
+	exit (err);
 }
 
 #define min(a,b) ((a) < (b) ? (a) : (b))