Bug 3547 - hush/ash read in a loop doesn't appear to break out correctly
Summary: hush/ash read in a loop doesn't appear to break out correctly
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.18.x
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-07 19:37 UTC by Ian Wienand
Modified: 2011-05-08 23:39 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

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