Bug 163151
Summary: | RPM scripts fail on cygwin (a.ka. psm->sq.reaper = 0 doesn't work) | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mark Hatle <mhatle> | ||||
Component: | rpm | Assignee: | Paul Nasrat <nobody+pnasrat> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | Mike McLean <mikem> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | other | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-07-07 04:21:20 UTC | Type: | --- | ||||
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
Mark Hatle
2005-07-13 15:10:20 UTC
Created attachment 116711 [details]
Enable waitpid for cygwin
Most of the patch was long since incorporated into rpm-4.4.3 (iirc). Meanwhile, this patch avoids blocking the child on the parent's pipe close if waitpid (i.e. sq->reaper = 0) is compiled in: Index: rpmsq.c =============================================================== ==== RCS file: /cvs/devel/rpm/rpmio/rpmsq.c,v retrieving revision 1.17.2.6 diff -u -b -B -w -p -r1.17.2.6 rpmsq.c --- rpmsq.c 16 Nov 2005 13:59:38 -0000 1.17.2.6 +++ rpmsq.c 7 Jul 2006 04:26:54 -0000 @@ -449,6 +449,7 @@ fprintf(stderr, " Enable(%p): %p\n", /* Block to permit parent time to wait. */ /*@-bounds@*/ xx = close(sq->pipes[1]); + if (sq->reaper) xx = read(sq->pipes[0], &yy, sizeof(yy)); xx = close(sq->pipes[0]); sq->pipes[0] = sq->pipes[1] = -1; |