| Summary: | netpbm pnmtops does not handle disabled zombies when called from parent process | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Raman Gupta <rocketraman> |
| Component: | netpbm | Assignee: | Petr Hracek <phracek> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | novyjindrich, phracek |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1029512 | Environment: | |
| Last Closed: | 2013-12-17 13:55:32 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: | |
The fix for this seems to be already included in: netpbm-10.61.02-7.fc19.x86_64 |
Description of problem: I was having a problem with pnmtops in the netpbm package. When running pnmtops from within a parent process in which zombies are disabled, pnmtops does not complete successfully. It prints out: pnmtops: waitpid() for child 0 failed and returns a failure code. The resulting ps file is missing some trailer data and is incomplete. Bryan Henderson has emailed me that he has fixed the bug in 10.64.04. The problem can be replicated by forking pnmtops from a C program wrapper as follows, and then executing a pnmtops conversion using the wrapper: #include <signal.h> #include <unistd.h> int main() { signal(SIGCHLD, SIG_IGN); execlp("pnmtops", "pnmtops"); return 0; }