1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-01 12:19:28 +00:00
freebsd/sbin/hastd
Pawel Jakub Dawidek 1c1933226f 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
2011-02-02 15:46:28 +00:00
..
activemap.c
activemap.h
control.c Remember created control connection so on fork(2) we can close it in child. 2011-01-27 19:33:57 +00:00
control.h Don't open configuration file from worker process. Handle SIGHUP in the 2011-01-24 15:04:15 +00:00
ebuf.c Fix typos. 2010-06-14 21:44:58 +00:00
ebuf.h
event.c Forgot to add event.c and event.h in r212038. 2010-08-31 09:38:43 +00:00
event.h Forgot to add event.c and event.h in r212038. 2010-08-31 09:38:43 +00:00
hast_proto.c Constify arguments we can constify. 2010-08-30 22:26:42 +00:00
hast_proto.h Constify arguments we can constify. 2010-08-30 22:26:42 +00:00
hast.conf.5 Execute hook when connection between the nodes is established or lost. 2010-08-30 00:31:30 +00:00
hast.h Implement function that drops privileges by: 2011-01-28 22:33:47 +00:00
hastd.8 mdoc: move remaining sections into consistent order 2010-05-13 12:08:11 +00:00
hastd.c - Use pjdlog for assertions and aborts as this will log assert/abort message 2011-01-31 18:32:17 +00:00
hastd.h Add function to assert that the only descriptors we have open are the ones 2011-01-28 21:56:47 +00:00
hooks.c execve(2), not fork(2) resets signal handler to the default value (if it isn't 2011-01-12 16:16:54 +00:00
hooks.h hook_check() is now only used to report about long-running hooks, so the 2010-10-04 21:43:06 +00:00
Makefile Don't generate input() since it's not used. 2010-11-22 14:16:22 +00:00
metadata.c Plug memory leaks. 2010-06-14 21:25:20 +00:00
metadata.h
nv.c Add nv_assert() which allows to assert that the given name exists. 2011-01-22 22:38:18 +00:00
nv.h Add nv_assert() which allows to assert that the given name exists. 2011-01-22 22:38:18 +00:00
parse.y Detect when resource is configured more than once. 2010-12-26 19:08:41 +00:00
pjdlog.c Rename pjdlog_verify() to pjdlog_abort() as it better describes what the 2011-01-31 15:52:00 +00:00
pjdlog.h Rename pjdlog_verify() to pjdlog_abort() as it better describes what the 2011-01-31 15:52:00 +00:00
primary.c Allow to specify connection timeout by the caller. 2011-02-02 15:42:00 +00:00
proto_common.c Fix build on ia64. 2011-01-31 23:46:36 +00:00
proto_impl.h Add proto_connect_wait() to wait for connection to finish. 2011-02-02 15:46:28 +00:00
proto_socketpair.c Implement two new functions for sending descriptor and receving descriptor 2011-01-31 18:35:17 +00:00
proto_tcp4.c Add proto_connect_wait() to wait for connection to finish. 2011-02-02 15:46:28 +00:00
proto_uds.c Add proto_connect_wait() to wait for connection to finish. 2011-02-02 15:46:28 +00:00
proto.c Add proto_connect_wait() to wait for connection to finish. 2011-02-02 15:46:28 +00:00
proto.h Add proto_connect_wait() to wait for connection to finish. 2011-02-02 15:46:28 +00:00
rangelock.c
rangelock.h
secondary.c - Use pjdlog for assertions and aborts as this will log assert/abort message 2011-01-31 18:32:17 +00:00
subr.c - Use pjdlog for assertions and aborts as this will log assert/abort message 2011-01-31 18:32:17 +00:00
subr.h Implement function that drops privileges by: 2011-01-28 22:33:47 +00:00
synch.h Plug memory leaks. 2010-10-24 15:41:23 +00:00
token.l Allow to execute specified program on various HAST events. 2010-08-27 15:16:52 +00:00