*** 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(¤t->blocked, mask);
recalc_sigpending(current);
spin_unlock_irqrestore(¤t->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(¤t->blocked, mask);
recalc_sigpending(current);
spin_unlock_irqrestore(¤t->sigmask_lock, flags);
***************
*** 278,284 ****
}
spin_lock_irqsave(¤t->sigmask_lock, flags);
! current->blocked = old_mask;
recalc_sigpending(current);
spin_unlock_irqrestore(¤t->sigmask_lock, flags);
--- 279,285 ----
}
spin_lock_irqsave(¤t->sigmask_lock, flags);
! current->blocked = old_set;
recalc_sigpending(current);
spin_unlock_irqrestore(¤t->sigmask_lock, flags);