From 0af66a9ab0177f0ea72c6084f6e5bfc587140563 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 1 Oct 2013 13:43:47 -0400 Subject: Try reconnecting if rpcbind EPIPEs us If the NIS server encounters an EPIPE while attempting to communicate with the portmapper, try to reconnect before giving up on registering. Depending on which RPC implementation is used, rpcbind may drop idle clients after 30 seconds, and our startup can take longer than that. --- src/portmap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/portmap.h') diff --git a/src/portmap.h b/src/portmap.h index 7cbb56c..0f302fc 100644 --- a/src/portmap.h +++ b/src/portmap.h @@ -22,10 +22,10 @@ #ifndef portmap_h #define portmap_h -bool_t portmap_register(const char *log_id, int resv_sock, +bool_t portmap_register(const char *log_id, int *resv_sock, int but_not, int program, int version, int family, int protocol, int port); -bool_t portmap_unregister(const char *log_id, int resv_sock, +bool_t portmap_unregister(const char *log_id, int *resv_sock, int but_not, int program, int version, int family, int protocol, int port); int portmap_create_client_socket(char *module, int but_not); -- cgit