[Initng-svn] r2311 - initng/plugins/simple_launcher
svn at initng.thinktux.net
svn at initng.thinktux.net
Fri Dec 2 13:45:16 CET 2005
Author: jimmy
Date: Fri Dec 2 13:45:15 2005
New Revision: 2311
Modified:
initng/plugins/simple_launcher/initng_simple_launcher.c
Log:
Some more cleanup.
Modified: initng/plugins/simple_launcher/initng_simple_launcher.c
==============================================================================
--- initng/plugins/simple_launcher/initng_simple_launcher.c (original)
+++ initng/plugins/simple_launcher/initng_simple_launcher.c Fri Dec 2 13:45:15 2005
@@ -55,15 +55,16 @@
static int simple_exec(process_h * p, active_h * s, size_t c, char **v);
-#define WHITESPACE " \t\n\r\v"
-
+#ifdef DEBUG
static void D_argv(const char *o, char **argv) {
int i;
- if( argv)
- for( i = 0; argv[i]; i++)
- D_( "%s: %s\n", o, argv[i]);
+ if(!argv)
+ return;
+
+ for( i = 0; argv[i]; i++)
+ D_( "%s[%-2i]: %s\n", o, i, argv[i]);
}
-
+#endif
/* Completely rewritten function.
* Contains old Code from SaTaN0rX and DEac-.
@@ -243,9 +244,10 @@
if ((pid_fork = initng_fork(s, process_to_exec)) == 0) {
+#ifdef DEBUG
D_("FROM_FORK simple_exec(%i,%s, ...);\n", argc, argv[0]);
-
- D_argv("simple_exec: ", argv);
+ D_argv("simple_exec: ", argv);
+#endif
/* FINALLY EXECUTE *//* execve replaces the running process */
execve(argv[0], argv, new_environ(s));
More information about the Initng-svn
mailing list