mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
cluster_fatal() exit code should not indicate success.
cluster_fatal() logs a fatal event and then exits with 0. This seems wrong. Sometimes command like "net" use this code and return incorrect empty output but then exit with 0. This simply changes the exit code to 1. Signed-off-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
4622f2e926
commit
27056d37e0
@ -58,7 +58,7 @@ static void cluster_fatal(const char *why)
|
||||
a core file. We need to release this process id immediately
|
||||
so that someone else can take over without getting sharing
|
||||
violations */
|
||||
_exit(0);
|
||||
_exit(1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user