diff options
| author | Bodo Stroesser <bstroesser@ts.fujitsu.com> | 2014-11-12 09:03:24 -0500 |
|---|---|---|
| committer | Steve Dickson <steved@redhat.com> | 2014-11-12 13:46:59 -0500 |
| commit | e2989f2f5fd709c19eeb92780a51ae58d3501db8 (patch) | |
| tree | e2b4aea11d8706606f39b5a53f603c0ed3ce06b9 /support/include | |
| parent | f44169dfe52ece05b1c36c0f3c3ea0427f295ace (diff) | |
| download | nfs-utils-e2989f2f5fd709c19eeb92780a51ae58d3501db8.tar.gz nfs-utils-e2989f2f5fd709c19eeb92780a51ae58d3501db8.tar.xz nfs-utils-e2989f2f5fd709c19eeb92780a51ae58d3501db8.zip | |
rpc.mountd: set nonblocking mode if no libtirpc
If mountd is built without libtirpc and it is started using "-p XXX"
option, the tcp listeners and the sockets waiting for UDP messages
are not in non-blocking mode. Thus if running with multiple threads (-t XX),
all threads will wake up from select on a connection request or a UDP
message, but only one thread will succeed. All others will wait on
accept() or read() for the next event.
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Bodo Stroesser <bstroesser@ts.fujitsu.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/include')
| -rw-r--r-- | support/include/nfslib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/support/include/nfslib.h b/support/include/nfslib.h index ce4b14b..a6a2e8d 100644 --- a/support/include/nfslib.h +++ b/support/include/nfslib.h @@ -174,6 +174,7 @@ void closeall(int min); int svctcp_socket (u_long __number, int __reuse); int svcudp_socket (u_long __number); +int svcsock_nonblock (int __sock); /* Misc shared code prototypes */ size_t strlcat(char *, const char *, size_t); |
