/*
* Cleanup any contexts that are left lying around
*/
-
-
-void close_masters (void)
-{
+void close_masters(void) {
struct ServiceFunctionHook *serviceptr;
const char *Text;
for (serviceptr = ServiceHookTable; serviceptr != NULL;
serviceptr = serviceptr->next ) {
- if (serviceptr->tcp_port > 0)
- {
+ if (serviceptr->tcp_port > 0) {
if (serviceptr->msock == -1) {
Text = "not closing again";
}
serviceptr->tcp_port = 0;
}
- if (serviceptr->sockpath != NULL)
- {
+ if (serviceptr->sockpath != NULL) {
if (serviceptr->msock == -1) {
Text = "not closing again";
}
);
}
- if (serviceptr->msock != -1)
- {
+ if (serviceptr->msock != -1) {
close(serviceptr->msock);
serviceptr->msock = -1;
}
}
-
-void checkcrash(void)
-{
- if (nFireUpsNonRestart != nFireUps)
- {
+void checkcrash(void) {
+ if (nFireUpsNonRestart != nFireUps) {
StrBuf *CrashMail;
CrashMail = NewStrBuf();
syslog(LOG_ALERT, "sysdep: posting crash message");
}
-
-void HuntBadSession(void)
-{
+void HuntBadSession(void) {
int highest;
CitContext *ptr;
fd_set readfds;