[Bug 3547] New: read in a loop doesn't appear to break out correctly

bugzilla at busybox.net bugzilla at busybox.net
Thu Apr 7 19:37:07 UTC 2011


https://bugs.busybox.net/show_bug.cgi?id=3547

           Summary: read in a loop doesn't appear to break out correctly
           Product: Busybox
           Version: 1.18.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: ianw at vmware.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


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

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list