mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
initilize ev->maxfd = EVENT_INVALID_MAXFD; before the while() loop.
metze
This commit is contained in:
parent
857e76ef6b
commit
61ec710518
@ -108,11 +108,22 @@ static NTSTATUS $name\_op_init_server(struct dcesrv_context *dce_ctx, const stru
|
||||
|
||||
static BOOL $name\_op_interface_by_uuid(struct dcesrv_interface *iface, const char *uuid, uint32 if_version)
|
||||
{
|
||||
if (strcmp($name\_interface.ndr->name, name)==0) {
|
||||
memcpy(iface,&$name\_interface, sizeof(*iface);
|
||||
return True;
|
||||
}
|
||||
|
||||
return False;
|
||||
}
|
||||
|
||||
static BOOL $name\_op_interface_by_name(struct dcesrv_interface *iface, const char *name)
|
||||
{
|
||||
if ($name\_interface.ndr->if_version == if_version &&
|
||||
strcmp($name\_interface.ndr->uuid, uuid)==0) {
|
||||
memcpy(iface,&$name\_interface, sizeof(*iface);
|
||||
return True;
|
||||
}
|
||||
|
||||
return False;
|
||||
}
|
||||
|
||||
|
@ -255,6 +255,7 @@ int event_loop_wait(struct event_context *ev)
|
||||
time_t t;
|
||||
|
||||
ZERO_STRUCT(ev->exit);
|
||||
ev->maxfd = EVENT_INVALID_MAXFD;
|
||||
|
||||
t = time(NULL);
|
||||
|
||||
|
@ -21,8 +21,8 @@
|
||||
|
||||
#include "includes.h"
|
||||
|
||||
SIG_ATOMIC_T reload_after_sighup = 0;
|
||||
SIG_ATOMIC_T got_sig_term = 0;
|
||||
//SIG_ATOMIC_T reload_after_sighup = 0;
|
||||
//SIG_ATOMIC_T got_sig_term = 0;
|
||||
|
||||
/*
|
||||
send an oplock break request to a client
|
||||
|
Loading…
Reference in New Issue
Block a user