* [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* Re: [uml-devel] [PATCH]: arch/um/os-Linux/process.c:os_usr1_process()
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
0 siblings, 0 replies; 2+ messages in thread
From: BlaisorBlade @ 2004-01-17 19:59 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: Nikita Danilov
Alle 20:12, venerdì 16 gennaio 2004, Nikita Danilov ha scritto:
> 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):
On Uml 2.4 currently kill is used at that point instead of tkill, so your
patch should probably work... however I don't have here any tkill docs so I
can't check them.
Also, the Jeff Dike's address on the site is out-of-date: use jdike (at)
addtoit (dot) com.
Bye
--
cat <<EOSIGN
Paolo Giarrusso, aka Blaisorblade
Linux Kernel 2.4.23/2.6.0 on an i686; Linux registered user n. 292729
EOSIGN
-------------------------------------------------------
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