1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ctdb-common: Drop unused function mkdir_p_or_die()

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>

Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Fri Jul 27 08:42:20 CEST 2018 on sn-devel-144
This commit is contained in:
Martin Schwenke 2018-06-08 18:48:07 +10:00 committed by Amitay Isaacs
parent 77242e7631
commit e7ef0c97e9
2 changed files with 0 additions and 16 deletions

View File

@ -143,20 +143,6 @@ void lockdown_memory(bool valgrinding)
#endif
}
void mkdir_p_or_die(const char *dir, int mode)
{
int ret;
ret = mkdir_p(dir, mode);
if (ret != 0) {
DEBUG(DEBUG_ALERT,
("ctdb exiting with error: "
"failed to create directory \"%s\" (%s)\n",
dir, strerror(errno)));
exit(1);
}
}
void ctdb_wait_for_process_to_exit(pid_t pid)
{
while (kill(pid, 0) == 0 || errno != ESRCH) {

View File

@ -29,8 +29,6 @@ void reset_scheduler(void);
void lockdown_memory(bool valgrinding);
void mkdir_p_or_die(const char *dir, int mode);
void ctdb_wait_for_process_to_exit(pid_t pid);
bool ctdb_sys_check_iface_exists(const char *iface);