Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tracing self patch - 2.6.x Host + 2.4.23-UML
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
DanBUK
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2003
Posts: 105
Location: London, UK

PostPosted: Tue Jan 13, 2004 11:22 am    Post subject: tracing self patch - 2.6.x Host + 2.4.23-UML Reply with quote

Hi,
I was having trouble getting the usermode linux to run on my 2.6.1 system. Did a bit of searching and came up with this:
Code:

--- 1.5/arch/um/os-Linux/process.c      Sat Jan 18 12:29:27 2003
+++ 1.6/arch/um/os-Linux/process.c      Thu Oct  2 14:27:57 2003
@@ -7,6 +7,7 @@
 #include <stdio.h>
 #include <errno.h>
 #include <signal.h>
+#include <linux/unistd.h>
 #include <sys/mman.h>
 #include <sys/wait.h>
 #include "os.h"
@@ -87,7 +88,8 @@
 
 void os_usr1_process(int pid)
 {
-       kill(pid, SIGUSR1);
+       syscall(__NR_tkill, pid, SIGUSR1);
+/*     tkill(pid, SIGUSR1);*/
 }
 
 int os_getpid(void)

Which has been coped from: here.
Now I didnt get around to figuring the patch switches that it wanted, so I just inserted the include and replaced the kill for the syscall. I hope this helps someone else.
Cheers,
Dan.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum