Displaying 1 result from an estimated 1 matches for "init_cmdv".
Did you mean:
  init_cmd
  
2006 May 10
1
[patch] kinit cmdline handling change
...*));
-
 	if ((fd = open("/dev/console", O_RDWR)) != -1) {
 		dup2(fd, STDIN_FILENO);
 		dup2(fd, STDOUT_FILENO);
@@ -293,6 +288,11 @@
 		goto bail;
 	}
+	/* Default parameters for anything init-like we execute */
+	init_argc = cmdc;
+	init_argv = alloca((cmdc+1)*sizeof(char *));
+	memcpy(init_cmdv, cmdv, (cmdc+1)*sizeof(char *));
+
 	/* Resume from suspend-to-disk, if appropriate */
 	/* If successful, does not return */
 	do_resume(cmdc, cmdv);