]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/linux-uml/linux-uml-2.4.26/11-usr1_process_tkill.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / linux-uml / linux-uml-2.4.26 / 11-usr1_process_tkill.patch
1 Index: linux-2.4.24-2/arch/um/os-Linux/process.c
2 --- linux-2.4.24-2/arch/um/os-Linux/process.c   19 Jan 2004 21:02:20 -0000      1.8
3 +++ linux-2.4.24-2/arch/um/os-Linux/process.c   17 May 2004 18:35:49 -0000
4 @@ -7,6 +7,7 @@
5  #include <stdio.h>
6  #include <errno.h>
7  #include <signal.h>
8 +#include <linux/unistd.h>
9  #include <sys/mman.h>
10  #include <sys/wait.h>
11  #include "os.h"
12 @@ -92,7 +93,8 @@
13  
14  void os_usr1_process(int pid)
15  {
16 -       kill(pid, SIGUSR1);
17 +       if (syscall(__NR_tkill, pid, SIGUSR1) < 0)
18 +           kill(pid, SIGUSR1);
19  }
20  
21  int os_getpid(void)