free(fname);
if(!get_config_string(lookup_config(config_tree, "Port"), &myport))
- abort(); //myport = xstrdup("655");
+ myport = xstrdup("655");
xasprintf(&myself->hostname, "MYSELF port %s", myport);
myself->connection->hostname = xstrdup(myself->hostname);
for(node = connection_tree->head; node; node = next) {
next = node->next;
c = node->data;
+ /* Keep control connections open until the end, so they know when we really terminated */
+ if(c->status.control)
+ c->socket = -1;
c->outgoing = NULL;
terminate_connection(c, false);
}