patch-2.1.120 linux/fs/lockd/svc.c
Next file: linux/fs/nfs/dir.c
Previous file: linux/fs/isofs/namei.c
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Tue Sep 1 12:17:39 1998
- Orig file:
v2.1.119/linux/fs/lockd/svc.c
- Orig date:
Mon Aug 3 17:48:27 1998
diff -u --recursive --new-file v2.1.119/linux/fs/lockd/svc.c linux/fs/lockd/svc.c
@@ -36,7 +36,7 @@
#define NLMDBG_FACILITY NLMDBG_SVC
#define LOCKD_BUFSIZE (1024 + NLMSSVC_XDRSIZE)
-#define ALLOWED_SIGS (sigmask(SIGKILL) | sigmask(SIGSTOP))
+#define ALLOWED_SIGS (sigmask(SIGKILL))
extern struct svc_program nlmsvc_program;
struct nlmsvc_binding * nlmsvc_ops = NULL;
@@ -80,6 +80,12 @@
current->pgrp = 1;
sprintf(current->comm, "lockd");
+ /* Process request with signals blocked. */
+ spin_lock_irq(¤t->sigmask_lock);
+ siginitsetinv(¤t->blocked, sigmask(SIGKILL));
+ recalc_sigpending(current);
+ spin_unlock_irq(¤t->sigmask_lock);
+
/* kick rpciod */
rpciod_up();
@@ -160,18 +166,7 @@
nlmsvc_ops->exp_getclient(&rqstp->rq_addr);
}
- /* Process request with signals blocked. */
- spin_lock_irq(¤t->sigmask_lock);
- siginitsetinv(¤t->blocked, ALLOWED_SIGS);
- recalc_sigpending(current);
- spin_unlock_irq(¤t->sigmask_lock);
-
svc_process(serv, rqstp);
-
- spin_lock_irq(¤t->sigmask_lock);
- sigemptyset(¤t->blocked);
- recalc_sigpending(current);
- spin_unlock_irq(¤t->sigmask_lock);
/* Unlock export hash tables */
if (nlmsvc_ops)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov