Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src


Modified Files:
      Tag: SPLIT
        Ecore.h ecore_exe.c 


Log Message:


more exe control

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/Ecore.h,v
retrieving revision 1.45.2.3
retrieving revision 1.45.2.4
diff -u -3 -r1.45.2.3 -r1.45.2.4
--- Ecore.h     13 Jan 2003 00:25:19 -0000      1.45.2.3
+++ Ecore.h     13 Jan 2003 00:34:59 -0000      1.45.2.4
@@ -40,6 +40,12 @@
    Ecore_Exe *ecore_exe_run(char *exe_cmd, void *data);
    pid_t      ecore_exe_pid_get(Ecore_Exe *exe);
    void      *ecore_exe_data_get(Ecore_Exe *exe);
+   void       ecore_exe_pause(Ecore_Exe *exe);
+   void       ecore_exe_continue(Ecore_Exe *exe);
+   void       ecore_exe_terminate(Ecore_Exe *exe);
+   void       ecore_exe_kill(Ecore_Exe *exe);
+   void       ecore_exe_signal(Ecore_Exe *exe, int num);
+   void       ecore_exe_hup(Ecore_Exe *exe);
        
    Ecore_Idler *ecore_idler_add(int (*func) (void *data), const void *data);
    void        *ecore_idler_del(Ecore_Idler *idler);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/Attic/ecore_exe.c,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -3 -r1.1.2.2 -r1.1.2.3
--- ecore_exe.c 13 Jan 2003 00:25:19 -0000      1.1.2.2
+++ ecore_exe.c 13 Jan 2003 00:34:59 -0000      1.1.2.3
@@ -1,6 +1,9 @@
 #include "ecore_private.h"
 #include "Ecore.h"
 
+#include <sys/types.h>
+#include <signal.h>
+
 /**
  * Spawn off a child process and return a handle to that process
  * @param exe_cmd The command-line to run as if typed in a shell
@@ -44,4 +47,80 @@
 void *
 ecore_exe_data_get(Ecore_Exe *exe)
 {
+}
+
+/**
+ * Control an executed child
+ * @param exe The process handleto control
+ * 
+ * This function controls an executed process
+ */
+void
+ecore_exe_pause(Ecore_Exe *exe)
+{
+   kill(exe->pid, SIGSTOP);
+}
+
+/**
+ * Control an executed child
+ * @param exe The process handleto control
+ * 
+ * This function controls an executed process
+ */
+void
+ecore_exe_continue(Ecore_Exe *exe)
+{
+   kill(exe->pid, SIGCONT);
+}
+
+/**
+ * Control an executed child
+ * @param exe The process handleto control
+ * 
+ * This function controls an executed process
+ */
+void
+ecore_exe_terminate(Ecore_Exe *exe)
+{
+   kill(exe->pid, SIGQUIT);
+}
+
+
+/**
+ * Control an executed child
+ * @param exe The process handleto control
+ * 
+ * This function controls an executed process
+ */
+void
+ecore_exe_kill(Ecore_Exe *exe)
+{
+   kill(exe->pid, SIGKILL);
+}
+
+/**
+ * Control an executed child
+ * @param exe The process handleto control
+ * 
+ * This function controls an executed process
+ */
+void
+ecore_exe_signal(Ecore_Exe *exe, int num)
+{
+   if (num == 1)
+     kill(exe->pid, SIGUSR1);
+   else if (num == 2)
+     kill(exe->pid, SIGUSR2);
+}
+
+/**
+ * Control an executed child
+ * @param exe The process handleto control
+ * 
+ * This function controls an executed process
+ */
+void
+ecore_exe_hup(Ecore_Exe *exe)
+{
+   kill(exe->pid, SIGHUP);
 }




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to