diff src/sysdep.c @ 108:360340f9fd5f r20-1b6

Import from CVS: tag r20-1b6
author cvs
date Mon, 13 Aug 2007 09:18:39 +0200
parents 4be1180a9e89
children 9f59509498e1
line wrap: on
line diff
--- a/src/sysdep.c	Mon Aug 13 09:17:27 2007 +0200
+++ b/src/sysdep.c	Mon Aug 13 09:18:39 2007 +0200
@@ -740,6 +740,20 @@
 #endif
 }
 
+/* Suspend a process if possible; give terminal to its superior.  */
+void
+sys_suspend_process (process)
+    int process;
+{
+    /* I don't doubt that it is possible to suspend processes on
+     * VMS machines or thost that use USG_JOBCTRL,
+     * but I don't know how to do it, so...
+     */
+#if defined (SIGTSTP) && !defined (MSDOS)
+    kill(process, SIGTSTP);
+#endif
+}
+
 /* Set the logical window size associated with descriptor FD
    to HEIGHT and WIDTH.  This is used mainly with ptys.  */