summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/primary.c
Commit message (Expand)AuthorAgeFilesLines
* Declare directions for sockets between primary and secondary.pjd2011-04-021-0/+5
* Handle the problem described in r220264 by using GEOM GATE queue of unlimitedpjd2011-04-021-1/+1
* Use timeout from configuration file not only when sending and receiving,pjd2011-03-251-1/+1
* Use role2str() when setting process title.pjd2011-03-251-1/+1
* After synchronization is complete we should make primary counters betrociny2011-03-221-3/+3
* For requests that are sent only to remote component use thetrociny2011-03-221-2/+7
* White space cleanups.pjd2011-03-221-3/+3
* When dropping privileges prefer capsicum over chroot+setgid+setuid.pjd2011-03-211-1/+1
* Initialize localcnt on first write. This fixes assertion when we createpjd2011-03-211-2/+6
* In hast.conf we define the other node's address in 'remote' variable.pjd2011-03-211-11/+21
* For secondary, set 2 * HAST_KEEPALIVE seconds timeout for incomingtrociny2011-03-171-8/+4
* Make workers inherit debug level from the main process.trociny2011-03-111-1/+3
* - Log size of data to synchronize in human readable form (using %N).pjd2011-03-071-6/+18
* Allow to compress on-the-wire data using two algorithms:pjd2011-03-061-0/+8
* Allow to checksum on-the-wire data using either CRC32 or SHA256.pjd2011-03-061-10/+19
* Setup another socketpair between parent and child, so that primary sandboxedpjd2011-02-031-30/+60
* Add missing locking after moving keepalive_send() to remote send threadpjd2011-02-031-3/+9
* Let the caller log info about successful privilege drop.pjd2011-02-031-0/+1
* Allow to specify connection timeout by the caller.pjd2011-02-021-2/+2
* - Use pjdlog for assertions and aborts as this will log assert/abort messagepjd2011-01-311-37/+36
* Drop privileges in worker processes.pjd2011-01-281-0/+5
* Use newly added descriptors_assert() function to ensure only expectedpjd2011-01-281-0/+2
* Close all unneeded descriptors after fork(2).pjd2011-01-281-6/+11
* Add comments to places where we treat errors as ciritical, but it is possiblepjd2011-01-281-0/+3
* Don't open configuration file from worker process. Handle SIGHUP in thepjd2011-01-241-50/+27
* The 'ret' variable is of type ssize_t and we use proper format for it (%zd), sopjd2010-12-161-3/+2
* Improve problems logging.pjd2010-12-161-7/+34
* Don't ignore errors from remote requests.pjd2010-12-161-1/+1
* Move timeout.tv_sec initialization outside the loop - sigtimedwait(2) won'tpjd2010-11-151-1/+1
* 1. Exit when we cannot create incoming connection.pjd2010-11-151-2/+4
* Send packets to remote node only via the send thread to avoid possiblepjd2010-11-021-40/+57
* Before this change on first connect between primary and secondary wepjd2010-10-241-3/+40
* Plug memory leaks.pjd2010-10-241-0/+1
* We can't zero out ggio request, as we have some fields in there we initializepjd2010-10-081-1/+0
* Clear ggate structures before using them. We don't initialize all the fieldpjd2010-10-071-1/+4
* Log error message when we fail to destroy ggate provider.pjd2010-10-071-1/+2
* Start the guard thread first, so we can handle signals from the very begining.pjd2010-10-071-3/+7
* Don't close local component on exit as we can hang waiting on g_waitidle.pjd2010-10-071-6/+0
* Switch to sigprocmask(2) API also in the main process and secondary process.pjd2010-09-221-13/+0
* Fix possible deadlock where worker process sends an event to the main processpjd2010-09-221-4/+12
* Add __dead2 to functions that we know they are going to exit.pjd2010-09-201-2/+2
* Mask only those signals that we want to handle.pjd2010-08-311-1/+4
* Because it is very hard to make fork(2) from threaded process safe (we arepjd2010-08-301-19/+20
* Use pjdlog_exit() before fork().pjd2010-08-301-2/+2
* Execute hook when connection between the nodes is established or lost.pjd2010-08-301-2/+5
* Execute hook when split-brain is detected.pjd2010-08-301-0/+3
* Use sigtimedwait(2) for signals handling in primary process.pjd2010-08-301-81/+40
* - Move functionality responsible for checking one connection to separatepjd2010-08-291-52/+75
* Disconnect after logging errors.pjd2010-08-291-1/+1
* Allow to run hooks from the main hastd process.pjd2010-08-291-0/+2
OpenPOWER on IntegriCloud