Bug 912774
| Summary: | whiptail consumes 100% CPU | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mario <holomalta> | ||||||
| Component: | newt | Assignee: | Miroslav Lichvar <mlichvar> | ||||||
| Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | rawhide | CC: | mlichvar | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2013-02-25 10:36:37 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Mario
2013-02-19 15:59:30 UTC
Created attachment 701192 [details]
Handle newtGetKey() errors.
After further investigation, I discovered that newtGetKey() is able to detect the loss of stdin and returns NEWT_KEY_ERROR when this happens. This is clearly commented in newt.c and should, in my opinion, be handled by whiptail.
Created attachment 701194 [details]
Handle newtGetKey() errors.
A similar code to what you propose is couple lines later after the newtGetKey() call, I'm wondering why it doesn't catch this. You are right. The code was fixed in b8b8a86f back in late 2010 but my compilation was linking with the system libnewt.so which is older than that. Sorry but I didn't realise the code was part of libnewt, not part of whiptail itself. Ok, thanks for the response. I'm closing this bug. |