qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5802] linux-user: Add support for STOP/CONT signals.
@ 2008-11-27 15:47 Thiemo Seufer
  0 siblings, 0 replies; only message in thread
From: Thiemo Seufer @ 2008-11-27 15:47 UTC (permalink / raw)
  To: qemu-devel

Revision: 5802
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5802
Author:   ths
Date:     2008-11-27 15:47:15 +0000 (Thu, 27 Nov 2008)

Log Message:
-----------
linux-user: Add support for STOP/CONT signals.

Signed-off-by: Riku Voipio <riku.voipio@iki.fi>

Modified Paths:
--------------
    trunk/linux-user/signal.c

Modified: trunk/linux-user/signal.c
===================================================================
--- trunk/linux-user/signal.c	2008-11-27 15:46:25 UTC (rev 5801)
+++ trunk/linux-user/signal.c	2008-11-27 15:47:15 UTC (rev 5802)
@@ -361,10 +361,15 @@
     k = &ts->sigtab[sig - 1];
     handler = sigact_table[sig - 1]._sa_handler;
     if (handler == TARGET_SIG_DFL) {
+        if (sig == TARGET_SIGTSTP || sig == TARGET_SIGTTIN || sig == TARGET_SIGTTOU) {
+            kill(getpid(),SIGSTOP);
+            return 0;
+        } else
         /* default handler : ignore some signal. The other are fatal */
         if (sig != TARGET_SIGCHLD &&
             sig != TARGET_SIGURG &&
-            sig != TARGET_SIGWINCH) {
+            sig != TARGET_SIGWINCH &&
+            sig != TARGET_SIGCONT) {
             force_sig(sig);
         } else {
             return 0; /* indicate ignored */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-27 15:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-27 15:47 [Qemu-devel] [5802] linux-user: Add support for STOP/CONT signals Thiemo Seufer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).