lkml.org 
[lkml]   [1997]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectncp compile probs
Date
With the following patch applied. It'll compile cleanly, it's been
running with the patch here since 2.1.68 when someone was a bit careless
in updating the code for the new signal semantics.

*** linux/fs/ncpfs/sock.c.orig Mon Dec 1 07:59:02 1997
--- linux/fs/ncpfs/sock.c Mon Dec 1 15:55:34 1997
***************
*** 18,23 ****
--- 18,24 ----
#include <linux/net.h>
#include <linux/mm.h>
#include <linux/netdevice.h>
+ #include <linux/signal.h>
#include <net/scm.h>
#include <net/sock.h>
#include <linux/ipx.h>
***************
*** 124,135 ****
What if we've blocked it ourselves? What about
alarms? Why, in fact, are we mucking with the
sigmask at all? -- r~ */
! if (current->sig->action[SIGINT - 1].sa_handler == SIG_DFL)
mask |= sigmask(SIGINT);
! if (current->sig->action[SIGQUIT - 1].sa_handler == SIG_DFL)
mask |= sigmask(SIGQUIT);
}
! siginitmaskinv(&current->blocked, mask);
recalc_sigpending(current);
spin_unlock_irqrestore(&current->sigmask_lock, flags);

--- 125,136 ----
What if we've blocked it ourselves? What about
alarms? Why, in fact, are we mucking with the
sigmask at all? -- r~ */
! if (current->sig->action[SIGINT - 1].sa.sa_handler == SIG_DFL)
mask |= sigmask(SIGINT);
! if (current->sig->action[SIGQUIT - 1].sa.sa_handler == SIG_DFL)
mask |= sigmask(SIGQUIT);
}
! siginitsetinv(&current->blocked, mask);
recalc_sigpending(current);
spin_unlock_irqrestore(&current->sigmask_lock, flags);

***************
*** 278,284 ****
}

spin_lock_irqsave(&current->sigmask_lock, flags);
! current->blocked = old_mask;
recalc_sigpending(current);
spin_unlock_irqrestore(&current->sigmask_lock, flags);

--- 279,285 ----
}

spin_lock_irqsave(&current->sigmask_lock, flags);
! current->blocked = old_set;
recalc_sigpending(current);
spin_unlock_irqrestore(&current->sigmask_lock, flags);



\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.018 / U:1.980 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site