Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Merge branch 'devel'
[palacios.git] / kitten / arch / x86_64 / mm / fault.c
1 #include <lwk/task.h>
2 #include <lwk/signal.h>
3 #include <lwk/ptrace.h>
4
5 /**
6  * Determines if a signal is unhandled.
7  * Returns 1 if the signal is unhandled, 0 otherwise.
8  */
9 int
10 unhandled_signal(struct task_struct *tsk, int sig)
11 {
12         if (is_init(tsk))
13                 return 1;
14         if (tsk->ptrace & PT_PTRACED)
15                 return 0;
16         return (tsk->sighand->action[sig-1].sa.sa_handler == SIG_IGN) ||
17                 (tsk->sighand->action[sig-1].sa.sa_handler == SIG_DFL);
18 }
19