svn commit: samba r2449 - in branches/SAMBA_4_0/source/smb_server: .
metze at samba.org
metze at samba.org
Mon Sep 20 13:17:51 GMT 2004
Author: metze
Date: 2004-09-20 13:17:51 +0000 (Mon, 20 Sep 2004)
New Revision: 2449
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/smb_server&rev=2449&nolog=1
Log:
use a blocking fd for smbsrv code
metze
Modified:
branches/SAMBA_4_0/source/smb_server/smb_server.c
Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/smb_server.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/smb_server.c 2004-09-20 12:40:11 UTC (rev 2448)
+++ branches/SAMBA_4_0/source/smb_server/smb_server.c 2004-09-20 13:17:51 UTC (rev 2449)
@@ -825,6 +825,7 @@
{
struct smbsrv_connection *smb_conn;
char *socket_addr;
+ int fd;
DEBUG(5,("smbsrv_accept\n"));
@@ -863,6 +864,9 @@
conn->private_data = smb_conn;
+ fd = socket_get_fd(conn->socket);
+ set_blocking(fd, True);
+
/* setup the DCERPC server subsystem */
dcesrv_init_context(&smb_conn->dcesrv);
More information about the samba-cvs
mailing list