select tracks by tag
general:
- If the server stops then disobedience crashes. Specifically,
- disorder_eclient_polled() finds a stashed 'command' with a
- callback of authbanner_opcallback, and a NULL cmd, in
- state_idle and c->authenticated nonzero.
+ disobedience doesn't like starting up if the server isn't running.
default: fatal(0, "invalid option");
}
}
+ signal(SIGPIPE, SIG_IGN);
/* create the event loop */
D(("create main loop"));
mainloop = g_main_loop_new(0, 0);
if(c->state > state_connecting)
consume(&c->input, (nl - c->input.vec) + 1);
}
- if(c->eof)
+ if(c->eof) {
comms_error(c, "reading from %s: server disconnected", c->ident);
+ c->authenticated = 0;
+ }
}
/* called with a line that has just been read */