Bug 781 - busybox init recursive calls shutdown scripts on multiple reboots
Summary: busybox init recursive calls shutdown scripts on multiple reboots
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.15.x
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2009-12-07 13:14 UTC by Simon Kagstrom
Modified: 2009-12-15 01:21 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
fix recursive rebooting by disabling signals (1.13 KB, patch)
2009-12-07 13:14 UTC, Simon Kagstrom
Details

Note You need to log in before you can comment on or make changes to this bug.
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