Bug 139814 - net-mgmt/arpalert exits with EINVAL of select()
Summary: net-mgmt/arpalert exits with EINVAL of select()
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Yen-Ming Lee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-21 12:20 UTC by fumifumi
Modified: 2009-10-22 07:50 UTC (History)
0 users

See Also:


Attachments
file.diff (771 bytes, patch)
2009-10-21 12:20 UTC, fumifumi
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description fumifumi 2009-10-21 12:20:00 UTC
arpalert exits with a syslog message
arpalert: [./arpalert.c 210] select[22]: Invalid argument

select() on BSD systems returns EINVAL if tv_usec of timeval is >= 1000000, while GNU/Linux system (possibly the developer's environment) does not.

Fix: Tentative fix is attached.
I have also e-mailed a suggestion to the arpalert project to fix essentialy.


Patch attached with submission follows:
How-To-Repeat: Run arpalert for long long time.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-10-21 20:56:33 UTC
Responsible Changed
From-To: freebsd-ports-bugs->leeym

Fix synopsis and assign.
Comment 2 Yen-Ming Lee freebsd_committer freebsd_triage 2009-10-22 07:40:00 UTC
State Changed
From-To: open->closed

Committed, thanks.
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-10-22 07:40:13 UTC
leeym       2009-10-22 06:39:53 UTC

  FreeBSD ports repository

  Modified files:
    net-mgmt/arpalert    Makefile 
  Added files:
    net-mgmt/arpalert/files patch-arpalert.c 
  Log:
  - fix to avoid EINVAL
  - bump PORTREVISION
  
  PR:             139814
  Submitted by:   Fumiyuki Shimizu <fumifumi at abacustech.jp>
  
  Revision  Changes    Path
  1.14      +1 -0      ports/net-mgmt/arpalert/Makefile
  1.1       +30 -0     ports/net-mgmt/arpalert/files/patch-arpalert.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"