Skip to contentSkip to conversation

nfsd: clear signals before exiting the nfsd() thread

PATCH In review [email protected] 1 participant 1 message Apr 12, 2005 NFS server

lore
Share & tools
lore
#0 lore raw

PATCH 192/198 nfsd: clear signals before exiting the nfsd() thread

From: NeilBrown <[email protected]>

Fixes the error "RPC: failed to contact portmap (errno -512)." when the server later tries to unregister from the portmapper.

---

 25-akpm/fs/nfsd/nfssvc.c |    2 ++
 1 files changed, 2 insertions(+)
fs/nfsd/nfssvc.c renamed from fs/nfsd/nfssvc.c~nfsd-clear-signals-before-exiting-the-nfsd-thread +2 -0
diff -puN fs/nfsd/nfssvc.c~nfsd-clear-signals-before-exiting-the-nfsd-thread fs/nfsd/nfssvc.c
@@ -258,6 +258,8 @@ nfsd(struct svc_rqst *rqstp)
 				break;
 		err = signo;
 	}
+	/* Clear signals before calling lockd_down() and svc_exit_thread() */
+	flush_signals(current);
 
 	lock_kernel();
 

_