linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] [PATCH]: arch/um/os-Linux/process.c:os_usr1_process()
@ 2004-01-16 19:12 Nikita Danilov
  2004-01-17 19:59 ` BlaisorBlade
  0 siblings, 1 reply; 2+ messages in thread
From: Nikita Danilov @ 2004-01-16 19:12 UTC (permalink / raw)
  To: Jeff Dike; +Cc: user-mode-linux-devel

Hello,

to compile 2.6.1 UML on the host kernel without tkill (for example,
2.4.21, that I use), I need the following patch (not sure it is right
one):

----------------------------------------------------------------------
diff -puN arch/um/os-Linux/process.c~uml-use-tkill-conditionally.diff arch/um/os-Linux/process.c
--- lobby/arch/um/os-Linux/process.c~uml-use-tkill-conditionally.diff	Fri Jan 16 20:21:34 2004
+++ lobby-nikita/arch/um/os-Linux/process.c	Fri Jan 16 20:21:34 2004
@@ -93,8 +93,11 @@ void os_kill_process(int pid, int reap_c
 
 void os_usr1_process(int pid)
 {
+#if defined(__NR_tkill)
 	syscall(__NR_tkill, pid, SIGUSR1); 
-	/* kill(pid, SIGUSR1); */
+#else
+	kill(pid, SIGUSR1);
+#endif
 }
 
 int os_getpid(void)

_
----------------------------------------------------------------------

Nikita.


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-17 19:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-16 19:12 [uml-devel] [PATCH]: arch/um/os-Linux/process.c:os_usr1_process() Nikita Danilov
2004-01-17 19:59 ` BlaisorBlade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox