Re: nfsiod sould not terminate on SIGTERM

Zoltan Hidvegi (hzoli@cs.elte.hu)
Sun, 19 Jan 1997 18:15:50 +0100 (MET)


I wrote:
> This patch just ignores SIGTERM in nfsiod, but any other signal can be used
> to terminate it.
[...]
> + current->signal &= ~(1<<(SIGTERM-1));

Unfotrunately this patch is wrong since a SIGTERM wakes nfsiod up. We have
to block SIGTERM to avoid that. Use this patch instead of the previous
one.

Zoltan

diff -u fs/nfs/nfsiod.c.orig fs/nfs/nfsiod.c
--- fs/nfs/nfsiod.c.orig Sun Dec 15 01:01:14 1996
+++ fs/nfs/nfsiod.c Sun Jan 19 17:59:00 1997
@@ -91,6 +91,7 @@
int result;

dprintk("BIO: nfsiod %d starting\n", current->pid);
+ current->blocked |= 1<<(SIGTERM-1);
while (1) {
/* Insert request into free list */
memset(req, 0, sizeof(*req));