mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18: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:
parent
77242e7631
commit
e7ef0c97e9
@ -143,20 +143,6 @@ void lockdown_memory(bool valgrinding)
|
|||||||
#endif
|
#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)
|
void ctdb_wait_for_process_to_exit(pid_t pid)
|
||||||
{
|
{
|
||||||
while (kill(pid, 0) == 0 || errno != ESRCH) {
|
while (kill(pid, 0) == 0 || errno != ESRCH) {
|
||||||
|
@ -29,8 +29,6 @@ void reset_scheduler(void);
|
|||||||
|
|
||||||
void lockdown_memory(bool valgrinding);
|
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);
|
void ctdb_wait_for_process_to_exit(pid_t pid);
|
||||||
|
|
||||||
bool ctdb_sys_check_iface_exists(const char *iface);
|
bool ctdb_sys_check_iface_exists(const char *iface);
|
||||||
|
Loading…
Reference in New Issue
Block a user