diff options
author | Martin Schwenke <martin@meltin.net> | 2016-04-01 20:01:51 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2016-04-17 13:54:13 +0200 |
commit | a610447995287946866c4cbf45b1614d1f5afea5 (patch) | |
tree | 83c134c155fb2a0c862afe33ae1755a03e226f79 | |
parent | a9b6276fbf51aba7478319f785ff3e0c9d60b6fe (diff) | |
download | samba-a610447995287946866c4cbf45b1614d1f5afea5.tar.gz |
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>
-rw-r--r-- | ctdb/server/ctdb_fork.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_fork.c b/ctdb/server/ctdb_fork.c index 661e72c6c27..93977d9c3be 100644 --- a/ctdb/server/ctdb_fork.c +++ b/ctdb/server/ctdb_fork.c @@ -71,6 +71,8 @@ pid_t ctdb_fork(struct ctdb_context *ctdb) pid = fork(); if (pid == -1) { + DEBUG(DEBUG_ERR, + (__location__ " fork() failed (%s)\n", strerror(errno))); return -1; } if (pid == 0) { |