diff options
author | Andreas Schneider <asn@samba.org> | 2011-08-29 09:49:22 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-29 13:21:43 +0200 |
commit | b8c3bfa55b574633bed10925d35dc23bc9e3853c (patch) | |
tree | 29968828c6dae2f0c0f59fb806e36b9792f093cf /source3/lib | |
parent | 92b7e3ee58d4c37d81103fcdab79184a84b084dc (diff) | |
download | samba-b8c3bfa55b574633bed10925d35dc23bc9e3853c.tar.gz samba-b8c3bfa55b574633bed10925d35dc23bc9e3853c.tar.xz samba-b8c3bfa55b574633bed10925d35dc23bc9e3853c.zip |
s3-lib: If we create a pipe socket, don't start to listen.
The create_pipe_sock() function should only create the socket as the
name states and not start to listen on it too. We should start to listen
on in the individual places as we need different backlog values.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Mon Aug 29 13:21:43 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util_sock.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index ebdd2c78f3d..9ade23c8bc7 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -1298,12 +1298,6 @@ int create_pipe_sock(const char *socket_dir, goto out_close; } - if (listen(sock, 5) == -1) { - DEBUG(0, ("listen failed on pipe socket %s: %s\n", path, - strerror(errno))); - goto out_close; - } - SAFE_FREE(path); umask(old_umask); |