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();
-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will
allow you to extend the highest allowed 128 bit encryption to all your
clients even if they use browsers that are limited to 40 bit encryption.
Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs