From: Nikita Danilov <Nikita@Namesys.COM>
To: Jeff Dike <JDike@Karaya.COM>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] [PATCH]: arch/um/os-Linux/process.c:os_usr1_process()
Date: Fri, 16 Jan 2004 22:12:03 +0300 [thread overview]
Message-ID: <16392.14211.847713.994092@laputa.namesys.com> (raw)
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
next reply other threads:[~2004-01-16 19:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-16 19:12 Nikita Danilov [this message]
2004-01-17 19:59 ` [uml-devel] [PATCH]: arch/um/os-Linux/process.c:os_usr1_process() BlaisorBlade
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16392.14211.847713.994092@laputa.namesys.com \
--to=nikita@namesys.com \
--cc=JDike@Karaya.COM \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox