Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Feb 2011 15:46:28 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sbin/hastd proto.c proto.h proto_impl.h proto_tcp4.c proto_uds.c
Message-ID:  <201102021546.p12Fkjtp012643@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
pjd         2011-02-02 15:46:28 UTC

  FreeBSD src repository

  Modified files:
    sbin/hastd           proto.c proto.h proto_impl.h proto_tcp4.c 
                         proto_uds.c 
  Log:
  SVN rev 218193 on 2011-02-02 15:46:28Z by pjd
  
  Add proto_connect_wait() to wait for connection to finish.
  If timeout argument to proto_connect() is -1, then the caller needs to use
  this new function to wait for connection.
  
  This change is in preparation for capsicum, where sandboxed worker wants
  to ask main process to connect in worker's behalf and pass descriptor
  to the worker. Because we don't want the main process to wait for the
  connection, it will start async connection and pass descriptor to the
  worker who will be responsible for waiting for the connection to finish.
  
  MFC after:      1 week
  
  Revision  Changes    Path
  1.10      +22 -1     src/sbin/hastd/proto.c
  1.6       +1 -0      src/sbin/hastd/proto.h
  1.5       +2 -0      src/sbin/hastd/proto_impl.h
  1.11      +43 -9     src/sbin/hastd/proto_tcp4.c
  1.7       +16 -1     src/sbin/hastd/proto_uds.c



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