Bug 124574 - Use poll() instead of select() in rpmio.c
Summary: Use poll() instead of select() in rpmio.c
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-05-27 16:51 UTC by Tom "spot" Callaway
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-05-29 16:01:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
use poll() instead of select() in rpmio.c (1.58 KB, patch)
2004-05-27 16:51 UTC, Tom "spot" Callaway
no flags Details | Diff

Description Tom "spot" Callaway 2004-05-27 16:51:26 UTC
Since the 2.6 kernel for Linux/Sparc64 seems to have issues with
select(), I've converted it to poll(). 

The attached patch makes the core changes, but you probably will want
to wrap it with an autoconf check, since poll() is not the most
portable thing known to mankind. :)

Comment 1 Tom "spot" Callaway 2004-05-27 16:51:57 UTC
Created attachment 100635 [details]
use poll() instead of select() in rpmio.c

Comment 2 Jeff Johnson 2004-05-29 16:01:05 UTC
Hmmm, several problems with your patch, not just the memory leak.

Anyways, poll(2) now used instead of select(2) if available.

Patch checked in on HEAD and rpm-4_3 branch.


Note You need to log in before you can comment on or make changes to this bug.