Fw: Hush cant replace lash for my situation
Alex Landau
landau_alex at yahoo.com
Mon Jan 7 22:33:14 PST 2008
Denys,
It prints vfork(), but actually executes fork() (a typo in your patch below), so I'd say
busybox does not recognize that this is a NOMMU system.
Alex
----- Forwarded Message ----
> From: Martinb_ARM_NOMMU_KISSDVD <martinb at zeelandnet.nl>
> To: Denys Vlasenko <vda.linux at googlemail.com>
> Cc: busybox at busybox.net
> Sent: Tuesday, January 8, 2008 12:34:41 AM
> Subject: RE: Hush cant replace lash for my situation
>
> did include the 2 lines and recompile
> output is:
>
> parse_stream_outer: run_list
> run_list entered
> : run_list_real with 1 members
> run_list_real start lvl 1
> : rword=0 if_code=0 next_if_code=0 skip_more=12
> : run_pipe_real with 1 members
> run_pipe_real start: single_fg=1
> : pipe member 'ls' '(null)'...
> : vfork returned -1
> run_pipe_real return -1
> : checkjobs returned 0
> : setting last_return_code=0
> : rword=0 if_code=0 next_if_code=0 skip_more=12
> run_list_real lvl 1 return 0
> run_list return 0
>
> You can give me more debug instructions if you want, i dont have
> the
>
skills
> but i do have the time
>
> /martinb
>
>
> > ================================================
>
> It seems it never goes into if (!child->pid) {...} part below:
> Can you add debug_printf_exec() as shown wit '+' and test again?
>
> if (child->argv)
> debug_printf_exec(": pipe member
> '%s'
>
'%s'...\n",
> child->argv[0], child->argv[1]);
> else
> debug_printf_exec(": pipe member with
> no
>
argv\n");
>
> /* pipes are inserted between pairs of commands */
> if ((i + 1) < pi->num_progs) {
> pipe(pipefds);
> nextout = pipefds[1];
> } else {
> nextout = 1;
> pipefds[0] = -1;
> }
>
> /* XXX test for failed fork()? */
> #if BB_MMU
> child->pid = fork();
> + debug_printf_exec(": vfork returned %d\n", child->pid);
> #else
> child->pid = vfork();
> + debug_printf_exec(": fork returned %d\n", child->pid);
> #endif
> if (!child->pid) { /* child */
>
> --
> vda
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
>
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
More information about the busybox
mailing list