From e2989f2f5fd709c19eeb92780a51ae58d3501db8 Mon Sep 17 00:00:00 2001 From: Bodo Stroesser Date: Wed, 12 Nov 2014 09:03:24 -0500 Subject: 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 Signed-off-by: Bodo Stroesser Signed-off-by: Steve Dickson --- support/include/nfslib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'support/include') 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); -- cgit