mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ctdb-daemon: Log a message when fork(2) fails
It is useful to know what error occurred. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
a9b6276fbf
commit
a610447995
@ -71,6 +71,8 @@ pid_t ctdb_fork(struct ctdb_context *ctdb)
|
|||||||
|
|
||||||
pid = fork();
|
pid = fork();
|
||||||
if (pid == -1) {
|
if (pid == -1) {
|
||||||
|
DEBUG(DEBUG_ERR,
|
||||||
|
(__location__ " fork() failed (%s)\n", strerror(errno)));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (pid == 0) {
|
if (pid == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user