[Initng-svn] r4386 - in initng/trunk: plugins/service_file plugins/simple_launcher src

svn at initng.thinktux.net svn at initng.thinktux.net
Wed Jun 7 11:16:25 CEST 2006


Author: jimmy
Date: Wed Jun  7 11:16:23 2006
New Revision: 4386

Modified:
   initng/trunk/plugins/bash_launcher/initng_bash_launcher.c
   initng/trunk/plugins/service_file/initng_service_file.c
   initng/trunk/plugins/simple_launcher/initng_simple_launcher.c
   initng/trunk/src/initng_fork.c

Log:
Run an indention.


Modified: initng/trunk/plugins/bash_launcher/initng_bash_launcher.c
==============================================================================
--- initng/trunk/plugins/bash_launcher/initng_bash_launcher.c	(original)
+++ initng/trunk/plugins/bash_launcher/initng_bash_launcher.c	Wed Jun  7 11:16:23 2006
@@ -161,7 +161,7 @@
 	{
 		/* run afterfork hooks from other plugins */
 		initng_fork_aforkhooks(s, process_to_exec);
-	
+
 		/* execute code */
 		bash_this(script, s, args);
 

Modified: initng/trunk/plugins/service_file/initng_service_file.c
==============================================================================
--- initng/trunk/plugins/service_file/initng_service_file.c	(original)
+++ initng/trunk/plugins/service_file/initng_service_file.c	Wed Jun  7 11:16:23 2006
@@ -369,7 +369,7 @@
 	if (!active)
 	{
 		strcpy(rep->message, "Service \"");
-		
+
 		strncat(rep->message, service, 500);
 		strcat(rep->message, "\" not found.");
 		rep->success = FALSE;
@@ -707,19 +707,20 @@
 	pipe_h *current_pipe;
 
 	/*printf("create_new_active(%s);\n", name); */
-	/*printf("service \"%s\" ", name);*/
-	
+	/*printf("service \"%s\" ", name); */
+
 	/* Make the filename, cutting on first '/' in name */
 	{
-		int i=0;
-		while(name[i] && i < 500 && name[i] != '/')
+		int i = 0;
+
+		while (name[i] && i < 500 && name[i] != '/')
 			i++;
 		strncat(file, name, i);
 	}
-	
+
 	/* printf(" parsing file \"%s\"\n", file); */
-		
-	/* check so that file exists */	
+
+	/* check so that file exists */
 	if (stat(file, &fstat) != 0)
 	{
 #if 0

Modified: initng/trunk/plugins/simple_launcher/initng_simple_launcher.c
==============================================================================
--- initng/trunk/plugins/simple_launcher/initng_simple_launcher.c	(original)
+++ initng/trunk/plugins/simple_launcher/initng_simple_launcher.c	Wed Jun  7 11:16:23 2006
@@ -174,7 +174,7 @@
 	{
 		/* run g.AFTER_FORK from other plugins */
 		initng_fork_aforkhooks(s, process_to_exec);
-		
+
 #ifdef DEBUG
 		D_("FROM_FORK simple_exec(%i,%s, ...);\n", argc, argv[0]);
 		/*D_argv("simple_exec: ", argv); */
@@ -340,7 +340,8 @@
 		argv0 = expand_exec(argv[0]);
 		if (!argv0)
 		{
-			F_("SERVICE: %s %s -- %s was not found in search path.\n", service->name, process->pt->name, argv[0]);
+			F_("SERVICE: %s %s -- %s was not found in search path.\n",
+			   service->name, process->pt->name, argv[0]);
 			free(argv);
 			argv = NULL;
 			fix_free(exec_fixed, exec);

Modified: initng/trunk/src/initng_fork.c
==============================================================================
--- initng/trunk/src/initng_fork.c	(original)
+++ initng/trunk/src/initng_fork.c	Wed Jun  7 11:16:23 2006
@@ -47,16 +47,17 @@
 void initng_fork_aforkhooks(active_db_h * service, process_h * process)
 {
 	s_call *current = NULL;
-		/* There might be plug-ins that will work here */
-		while_list(current, &g.A_FORK)
+
+	/* There might be plug-ins that will work here */
+	while_list(current, &g.A_FORK)
+	{
+		if (((*current->c.af_launcher) (service, process)) == FALSE)
 		{
-			if (((*current->c.af_launcher) (service, process)) == FALSE)
-			{
-				F_("Some plugin did fail (from:%s), in after fork launch.\n",
-				   current->from_file);
-				_exit(1);
-			}
+			F_("Some plugin did fail (from:%s), in after fork launch.\n",
+			   current->from_file);
+			_exit(1);
 		}
+	}
 }
 
 pid_t initng_fork(active_db_h * service, process_h * process)


More information about the Initng-svn mailing list