On some systems (distros, for example Archlinux, same messages I saw in
Ubuntu) there's problem with programs that uses libpcap. When interface
goes down it causes cpu usage to 100%. In libpcap there is no exception
statement about poll bitmasks when it return positive value. According to
'man poll' there is POLLHUP POLLNVAL and POLLERR which can be checked, also
in <bits/poll.h> there is POLLRDHUP defined for GNU systems. This patch
solves this problem.
Nobody/Anonymous
None
None
Public
|
Date: 2009-10-13 00:22 I've checked in a variant of those changes (this isn't a per-distribution |
| Filename | Description | Download |
|---|---|---|
| libpcap_poll_reventcheck.patch | in pcap-linux.c revent bitmask check when poll returns ret>0. | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2009-10-13 00:23 | guy_harris |
| resolution_id | None | 2009-10-13 00:23 | guy_harris |
| close_date | - | 2009-10-13 00:23 | guy_harris |
| summary | Fix 100% cpu usage whe interface down. | 2009-09-21 06:15 | nleiten |
| summary | pcap-linux poll rtevent check | 2009-09-21 06:15 | nleiten |
| File Added | 343731: libpcap_poll_reventcheck.patch | 2009-09-21 04:05 | nleiten |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use