Enlightenment CVS committal Author : raster Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore Modified Files: ecore_app.c Log Message: support app restart... :) =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore_app.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- ecore_app.c 8 May 2004 04:44:03 -0000 1.4 +++ ecore_app.c 25 Nov 2004 04:07:54 -0000 1.5 @@ -52,5 +52,13 @@ void ecore_app_restart(void) { - /* FIXME: exec self using argv, argc etc. */ + char **args; + int i; + + if ((app_argc < 1) || (!app_argv)) return; + args = malloc((app_argc + 1) * sizeof(char *)); + if (!args) return; + for (i = 0; i < app_argc; i++) args[i] = app_argv[i]; + args[i] = NULL; + execvp(app_argv[0], args); } ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs