ソースを参照

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 17 年 前
コミット
91458d92fa
1 ファイル変更1 行追加1 行削除
  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))