lkml.org 
[lkml]   [1997]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: nfsiod sould not terminate on SIGTERM
Date
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));
\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.016 / U:2.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site