Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jul 2011 18:07:03 +0000 (UTC)
From:      Jonathan Anderson <jonathan@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/tools/regression/kqueue config.h main.c proc.c
Message-ID:  <201107071807.p67I7MV7009469@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jonathan    2011-07-07 18:07:03 UTC

  FreeBSD src repository

  Modified files:
    tools/regression/kqueue config.h main.c proc.c 
  Log:
  SVN rev 223845 on 2011-07-07 18:07:03Z by jonathan
  
  Ensure that kqueue is not inherited across fork().
  
  Modify the existing unit test (from libkqueue) which already exercises process events via
  fork() and kill(). Now, the child process simply checks that the 'kqfd' descriptor is invalid.
  
  Some minor modifications were required to make err() work correctly. It seems that this test
  was imported using the output of a configure script, but config.h was not included in key
  places, nor was its syntax correct (need '#define HAVE_FOO 1' rather than '#define HAVE_FOO').
  
  Finally, change main() to run the "proc" suite by default, but widened the '#if TODO' in
  proc.c to include the non-functioning test event_trigger().
  
  Approved by: mentor (rwatson), re (Capsicum blanket)
  Sponsored by: Google Inc
  
  Revision  Changes    Path
  1.3       +4 -4      src/tools/regression/kqueue/config.h
  1.3       +2 -1      src/tools/regression/kqueue/main.c
  1.2       +15 -1     src/tools/regression/kqueue/proc.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107071807.p67I7MV7009469>