2009/6/3, Mike Frysinger <[email protected]>:
> On Tuesday 02 June 2009 10:53:27 wilbur.chan wrote:
>> busybox 1.13.1  ,    msh
>>
>> I wrote a  procedure of infinite loop. When I pressed ctrl+c , this
>> procedure was killed by SIGINT, however, the msh seemed to be killed too(
>> and busybox respawn a new msh).
>
> known issue, msh sucks.  use hush.
>
>> could someone tell me why?
>
> there's a race condition in the code due to the use of vfork.  not worth
> fixing.

When ctrl+C pressed , SIGINT will be send to both msh and our
application (they are of the same  group), and what  happened next?


I looked up the code of vfork in kernel 2.6.21.7 , but can't find
where the condition is .
can you please tell me more information about this condition?

thank you



regards
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to