HUGE PATCH. This moves all of mime_parser.c and all
[citadel.git] / citadel / ipc_c_tcp.c
index 414acb71dc032232333d853ad84af1fabfab26ce..bc68721c6aa9e768199ef70027fe8dce2843abe3 100644 (file)
 #include <pwd.h>
 #include <errno.h>
 #include <stdarg.h>
+#include <libcitadel.h>
 #include "citadel.h"
 #include "citadel_ipc.h"
 #include "citadel_decls.h"
-#include "tools.h"
 #ifndef HAVE_SNPRINTF
 #include "snprintf.h"
 #endif
@@ -67,20 +67,13 @@ void connection_died(CtdlIPC* ipc, int using_ssl) {
        fflush(stdout);
 
 #ifdef HAVE_OPENSSL
-       /*  ...don't try to shut down a connection on a dead socket?
-       SSL_shutdown(ipc->ssl);
-       */
-
        SSL_free(ipc->ssl);
        ipc->ssl = NULL;
 #endif
        shutdown(ipc->sock, 2);
        ipc->sock = -1;
-
-       /* Hangup - let any children know as well */
-       /* kill(0, SIGHUP); */
-       /* This is disabled because it makes the setup program and other
-        * users of sendcommand do really unhappy things. */
+        printf ("About to exit because of dead socket.\n");
+        exit (1);
 }