Enlightenment CVS committal

Author  : atmosphere
Project : misc
Module  : elogin

Dir     : misc/elogin/src/daemon


Modified Files:
        spawner.c 


Log Message:

Another daemon fix from Ibukun Olumuyiwa <[EMAIL PROTECTED]> 


===================================================================
RCS file: /cvsroot/enlightenment/misc/elogin/src/daemon/spawner.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- spawner.c   18 Jan 2003 04:45:22 -0000      1.12
+++ spawner.c   21 Jan 2003 05:20:17 -0000      1.13
@@ -199,7 +199,6 @@
 elogin_exit(int signum)
 {
    int status = 0;
-   int x_status = 0;
    pid_t pid;
 
    if (signum == SIGTERM)
@@ -217,21 +216,11 @@
          printf("INFO: Elogin process died.\n");
          if (d->display)
          {
-            /* Allow things to settle down (in case X died as well) */
+            /* Die Hard Like Bruce Willis */
+            kill(d->pid.x, SIGTERM);
             sleep(1);
+            d->display = NULL;
 
-            /* check to see if X is still alive before restarting elogin */
-            if (!waitpid(d->pid.x, &x_status, WNOHANG))
-            {
-               kill(d->pid.x, SIGTERM);
-               sleep(1);
-            }
-            else
-            {
-               /* Die Hard Like Bruce Willis */
-               kill(d->pid.x, SIGTERM);
-               d->display = NULL;
-            }
             spawn_x();
             spawn_elogin();
          }




-------------------------------------------------------
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