Bug 781

Summary: busybox init recursive calls shutdown scripts on multiple reboots
Product: Busybox Reporter: Simon Kagstrom <simon.kagstrom>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5 Keywords: patch
Version: 1.15.x   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:
Attachments: fix recursive rebooting by disabling signals

Description Simon Kagstrom 2009-12-07 13:14:32 UTC
Created attachment 807 [details]
fix recursive rebooting by disabling signals

Doing

    while [ 1 ] ; do reboot ; done

with busybox 1.15.2 init causes recursive calls to the shutdown scripts. This patch fixes the issue by disabling the signals at the first invocation of the handler.

(The example above is a bit constructed, but it can also happen in some real-world scenarios).
Comment 1 Denys Vlasenko 2009-12-14 02:04:48 UTC
Fixed, thanks! Will be in 1.16.x