Bug 3547

Summary: hush/ash read in a loop doesn't appear to break out correctly
Product: Busybox Reporter: Ian Wienand <ianw>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.18.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Ian Wienand 2011-04-07 19:37:07 UTC
run this simple program

---
#!/bin/sh

echo $$

trap "exit 0" HUP

while [ 1 ]
do
	read ignored
done
---

send it a SIGHUP, and it doesn't exit until you push a key
Comment 1 Denys Vlasenko 2011-05-08 23:39:47 UTC
fixed in git (several commit before 54e9e1217c67563d70d6e2b14021293f707d7927) and will be in 1.19.x