Enlightenment CVS committal

Author  : xcomputerman
Project : e17
Module  : apps/entrance

Dir     : e17/apps/entrance/src/daemon


Modified Files:
        spawner.c spawner.h 


Log Message:
Use exit code so that spawner doesn't attempt to restart entrance during a
shutdown or reboot.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/daemon/spawner.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- spawner.c   24 Oct 2003 04:03:31 -0000      1.9
+++ spawner.c   25 Oct 2003 04:50:28 -0000      1.10
@@ -231,9 +231,14 @@
        
     if (e->exe == d->e_exe) {
         /* Session exited or crashed */
-        if (e->exited)
+        if (e->exited) {
             syslog(LOG_INFO, "The session has ended normally.");
-        else if (e->signalled)
+            if(e->exit_code == EXITCODE) {
+                ecore_main_loop_quit();
+                return 0;
+            }
+            
+        } else if (e->signalled)
             syslog(LOG_INFO, "The session was terminated with signal %d.", 
e->exit_signal);
 
         kill(d->pid.x, SIGHUP);
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/daemon/spawner.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- spawner.h   24 Oct 2003 04:03:31 -0000      1.6
+++ spawner.h   25 Oct 2003 04:50:28 -0000      1.7
@@ -24,6 +24,7 @@
 #define X_DISP ":0"             /* only used if DISPLAY variable is NOT set */
 #define ENTRANCE PREFIX "/bin/entrance_wrapper"
 #define PIDFILE "/var/run/entranced.pid"
+#define EXITCODE 42
 
 /* display->status possible values */
 #define NOT_RUNNING 0




-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to