Bug 139814

Summary: net-mgmt/arpalert exits with EINVAL of select()
Product: Ports & Packages Reporter: fumifumi
Component: Individual Port(s)Assignee: Yen-Ming Lee <leeym>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
file.diff none

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 2009-10-22 07:40:00 UTC
State Changed
From-To: open->closed

Committed, thanks.
Comment 3 dfilter service freebsd_committer 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 
  - fix to avoid EINVAL
  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
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"