From: <enl...@li...> - 2003-01-18 04:30:04
|
Enlightenment CVS committal Author : atmosphere Project : misc Module : elogin Dir : misc/elogin/src/daemon Modified Files: spawner.c Log Message: slight fix, display the error message if we can't find elogin before we close all the file descriptors =================================================================== RCS file: /cvsroot/enlightenment/misc/elogin/src/daemon/spawner.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- spawner.c 18 Jan 2003 04:02:46 -0000 1.10 +++ spawner.c 18 Jan 2003 04:30:03 -0000 1.11 @@ -118,6 +118,15 @@ { fork_and_exit(); } + + /* Check to make sure elogin binary is executable */ + if (access(ELOGIN, X_OK)) + { + fprintf(stderr, + "Elogin: Fatal Error: Cannot execute elogin binary. Aborting.\n"); + exit(1); + } + close(0); close(1); close(2); @@ -129,14 +138,6 @@ /* setup a spawner context */ d = spawner_display_new(); - - /* Check to make sure elogin binary is executable */ - if (access(ELOGIN, X_OK)) - { - fprintf(stderr, - "Elogin: Fatal Error: Cannot execute elogin binary. Aborting."); - exit(1); - } /* run X */ spawn_x(); |