Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Aug 2010 23:26:10 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sbin/hastd Makefile hast.h hastd.c primary.c secondary.c
Message-ID:  <201008302326.o7UNQZIP058304@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
pjd         2010-08-30 23:26:10 UTC

  FreeBSD src repository

  Modified files:
    sbin/hastd           Makefile hast.h hastd.c primary.c 
                         secondary.c 
  Log:
  SVN rev 212038 on 2010-08-30 23:26:10Z by pjd
  
  Because it is very hard to make fork(2) from threaded process safe (we are
  limited to async-signal safe functions in the child process), move all hooks
  execution to the main (non-threaded) process.
  
  Do it by maintaining connection (socketpair) between child and parent
  and sending events from the child to parent, so it can execute the hook.
  
  This is step in right direction for others reasons too. For example there is
  one less problem to drop privs in worker processes.
  
  MFC after:      2 weeks
  Obtained from:  Wheel Systems Sp. z o.o. http://www.wheelsystems.com
  
  Revision  Changes    Path
  1.5       +1 -1      src/sbin/hastd/Makefile
  1.6       +2 -0      src/sbin/hastd/hast.h
  1.16      +34 -10    src/sbin/hastd/hastd.c
  1.27      +20 -19    src/sbin/hastd/primary.c
  1.12      +17 -4     src/sbin/hastd/secondary.c



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