mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
fixed crash bug - thanks volker
(This used to be ctdb commit e293f6fadf673d8bc7203198d709bcb28c26b482)
This commit is contained in:
parent
4c787fdff5
commit
7db4320e84
@ -43,11 +43,12 @@ static void lockwait_handler(struct event_context *ev, struct fd_event *fde,
|
||||
struct lockwait_handle);
|
||||
void (*callback)(void *) = h->callback;
|
||||
void *p = h->private_data;
|
||||
pid_t child = h->child;
|
||||
talloc_set_destructor(h, NULL);
|
||||
close(h->fd[0]);
|
||||
talloc_free(h);
|
||||
callback(p);
|
||||
waitpid(h->child, NULL, 0);
|
||||
waitpid(child, NULL, 0);
|
||||
}
|
||||
|
||||
static int lockwait_destructor(struct lockwait_handle *h)
|
||||
|
Loading…
Reference in New Issue
Block a user