The Samba-Bugzilla – Attachment 453 Details for
Bug 1211
smbd on IRIX blocks in accept() if new client drops connection
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix blocking accept() call on IRIX
smbd-nonblocking-accept.patch (text/plain), 953 bytes, created by
Richard Garnish
on 2004-03-23 16:58:26 UTC
(
hide
)
Description:
Patch to fix blocking accept() call on IRIX
Filename:
MIME Type:
Creator:
Richard Garnish
Created:
2004-03-23 16:58:26 UTC
Size:
953 bytes
patch
obsolete
>--- smbd/server.c.orig Tue Mar 23 14:57:50 2004 >+++ smbd/server.c Tue Mar 23 20:39:15 2004 >@@ -250,6 +250,9 @@ > set_socket_options(s,"SO_KEEPALIVE"); > set_socket_options(s,user_socket_options); > >+ /* set server socket to non-blocking */ >+ set_blocking(s,False); >+ > if (listen(s, SMBD_LISTEN_BACKLOG) == -1) { > DEBUG(0,("listen: %s\n",strerror(errno))); > close(s); >@@ -286,6 +289,9 @@ > set_socket_options(s,"SO_KEEPALIVE"); > set_socket_options(s,user_socket_options); > >+ /* set server socket to non-blocking */ >+ set_blocking(s,False); >+ > if (listen(s, SMBD_LISTEN_BACKLOG) == -1) { > DEBUG(0,("open_sockets_smbd: listen: %s\n", > strerror(errno))); >@@ -377,6 +383,9 @@ > strerror(errno))); > continue; > } >+ >+ /* ensure child is set to blocking mode */ >+ set_blocking(smbd_server_fd(),True); > > if (smbd_server_fd() != -1 && interactive) > return True;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1211
: 453