summaryrefslogtreecommitdiffstats
path: root/src/monitor
Commit message (Collapse)AuthorAgeFilesLines
* Remove support for pre-1.1 netlinkStephen Gallagher2011-01-171-32/+0
| | | | | | | Netlink 1.0 and older is buggy and unreliable, occasionally causing tight-loops. We're no longer going to try to support it. https://fedorahosted.org/sssd/ticket/755
* Clarify nscd warningStephen Gallagher2011-01-171-4/+5
| | | | | | Removes the level-zero DEBUG message and modifies the syslog message to explain that NSCD is safe for maps that SSSD does not (yet) support.
* Prevent uninitialized value error in monitor_quitStephen Gallagher2010-12-141-0/+1
| | | | https://fedorahosted.org/sssd/ticket/724
* Set up signal handlers before initializing sysdbStephen Gallagher2010-12-021-38/+38
| | | | | | | | | | | A temporary signal handler for SIGTERM is set up in server_setup() that calls exit() from within a pure signal handler. This causes a race condition where it's possible that if the SSSD is restarted immediately while it is still initializing the sysdb caches for the first time, it can leave the cache in a corrupt and unusable state. https://bugzilla.redhat.com/show_bug.cgi?id=658444
* Resend SIGTERM if child doesn't terminateStephen Gallagher2010-12-021-24/+40
| | | | | | | | | There is a race condition where if we send a SIGTERM before the kernel has scheduled the child, it may be lost, and the child will not terminate and will leave the monitor hung in wait(). This patch alters this behavior so that we will send the SIGTERM again every 10ms and check the wait() in a nonblocking manner.
* Daemonize by defaultSumit Bose2010-12-011-0/+4
|
* Fix a typo on setup_netlink()Sumit Bose2010-11-241-1/+1
|
* Add SIGUSR2 to reset offline statusSumit Bose2010-11-221-0/+29
|
* Wait for all children to exitStephen Gallagher2010-11-181-2/+61
| | | | | Previously, there was a race-condition where the monitor might terminate before its children.
* Log startup errors to syslogStephen Gallagher2010-11-161-7/+9
|
* Handle errors during log reopening betterStephen Gallagher2010-11-051-1/+2
|
* Write log opening failures to the syslogStephen Gallagher2010-10-191-1/+1
| | | | | If there is a problem with reopening the logs, it can be an audit trail issue.
* Dead assignments cleanup in various places in SSSDJan Zeleny2010-09-081-0/+3
| | | | | | Three assignments deleted, two return code inspection added. Also found and fixed one critical bug caused by dead assignment. Ticket: #590
* Use netlink to detect going onlineJakub Hrozek2010-07-094-0/+453
| | | | | | | | Integrates libnl to detect adding routes. When a route is added, the offline status of all back ends is reset. This patch adds no heuristics to detect whether back end went offline. Fixes: #456
* Add try_inotify optionStephen Gallagher2010-07-091-1/+18
| | | | | | | | There are some special cases where inotify cannot be used, even if the host OS claims that it is supported. In these cases, it should be possible to explicitly disable the use of inotify. https://fedorahosted.org/sssd/ticket/484
* Resend SIGINT as SIGTERM in servicesJakub Hrozek2010-06-281-0/+1
| | | | Fixes: #462
* Check the correct variable for NULL after creating timerStephen Gallagher2010-06-101-2/+2
| | | | | | | | | In several places, we were creating a new timer and assigning it to the tev variable, but then we were checking for NULL from the te variable (which, incidentally, is guaranteed never to be NULL in this situation) https://fedorahosted.org/sssd/ticket/523
* Properly handle read() and write() throughout the SSSDStephen Gallagher2010-06-101-2/+2
| | | | | | | We need to guarantee at all times that reads and writes complete successfully. This means that they must be checked for returning EINTR and EAGAIN, and all writes must be wrapped in a loop to ensure that they do not truncate their output.
* Move parse_args() to utilSumit Bose2010-05-271-100/+0
|
* Fix a potential memory violationSumit Bose2010-04-261-2/+4
| | | | If read() returns with errno set to EINTR -1 is added to total_len.
* sysydb: Finally stop using a common event contextSimo Sorce2010-04-121-1/+1
| | | | This commit completes the migration to a synchronous sysdb
* Fix warnings from -Wmissing-field-initializersSumit Bose2010-03-251-1/+1
| | | | This patch removes some tab-indentations from pamsrv.c, too.
* Add generic error messageJakub Hrozek2010-03-221-0/+4
|
* Fix config file error messageJakub Hrozek2010-03-221-1/+1
|
* Fix multiple errors with destructors.Simo Sorce2010-03-191-2/+22
| | | | | | | | | | | | | | | | | This commits cleans up 3 segfaults/valgrind errors due to access to freed memory. 1. The spy wasn't clearing conn_spy causing the svc_destructor to try to clear the spy destructor when the spy was already freed 2. get_config_service was not setting the svc_destrcutor on services depending on the orderof frees at exit this was causing the spy destructor to try to access freed memory because it was not neutralized when the service was freed. 3. at exit the mt_ctx could be freed before services causing the svc_destrcutor to try to access freed memory when removing the service from the service list in the monitor context.
* Fix invalid read cause by premature free of tmpctxSimo Sorce2010-03-191-13/+10
|
* Fix a series of memory leaks in the SBUSStephen Gallagher2010-03-172-9/+19
|
* Properly handle dbus send attempts on a closed connectionStephen Gallagher2010-03-152-67/+12
| | | | | | | | dbus_connection_send_with_reply() will report success and return a NULL pending_reply when the connection is not open for communication. This patch creates a new wrapper around dbus_connection_send_with_reply() to properly detect this condition and report it as an error.
* Flush NSCD cache after modifying local databaseJakub Hrozek2010-03-152-0/+14
| | | | Fixes: #221
* Reopen logs when SIGHUP is caughtJakub Hrozek2010-03-083-3/+26
| | | | | | | | Upon receiving SIGHUP, the monitor signals all services to reopen their debug logs. It is also possible to signal individual services to reopen their particular files. Fixes: #332
* Add forgotten \n in DEBUG statementsMartin Nagy2010-03-041-3/+3
| | | | | | Logs from confdb with missing '\n' in the DEBUG statements annoyed me so I decided to fix them. I also made a quick grep through the code and found other places so I fixed them too.
* Eliminate monitor reconfigStephen Gallagher2010-03-042-353/+4
| | | | | | | | | | | | We disabled live reconfiguration a long time ago with the intent of fixing it so that it wasn't completely broken, but we've decided that live updates are too delicate to handle all cases gracefully. For the forseeable future, we will rely on process restart for updating the configuration. Furthermore, we had not completely disabled live updates. It would still attempt to run if we sent a SIGHUP. This has also been eliminated.
* Rename server/ directory to src/Stephen Gallagher2010-02-184-0/+2917
Also update BUILD.txt