fixed indents
This commit is contained in:
parent
92f9e9f166
commit
ca6942724a
@ -934,16 +934,16 @@ void do_status_offline (int arg_num, struct arg args[], struct in_ev *ev) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void do_quit (int arg_num, struct arg args[], struct in_ev *ev) {
|
void do_quit (int arg_num, struct arg args[], struct in_ev *ev) {
|
||||||
if (daemonize)
|
if (daemonize) {
|
||||||
event_incoming (ev->bev, BEV_EVENT_EOF, ev);
|
event_incoming (ev->bev, BEV_EVENT_EOF, ev);
|
||||||
//bufferevent_free(ev->bev);
|
}
|
||||||
do_halt (0);
|
do_halt (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void do_safe_quit (int arg_num, struct arg args[], struct in_ev *ev) {
|
void do_safe_quit (int arg_num, struct arg args[], struct in_ev *ev) {
|
||||||
if (daemonize)
|
if (daemonize) {
|
||||||
event_incoming (ev->bev, BEV_EVENT_EOF, ev);
|
event_incoming (ev->bev, BEV_EVENT_EOF, ev);
|
||||||
//bufferevent_free(ev->bev);
|
}
|
||||||
safe_quit = 1;
|
safe_quit = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
3
main.c
3
main.c
@ -746,8 +746,9 @@ void sig_term_handler (int signum __attribute__ ((unused))) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void do_halt (int error) {
|
void do_halt (int error) {
|
||||||
if (daemonize)
|
if (daemonize) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!readline_disabled) {
|
if (!readline_disabled) {
|
||||||
rl_free_line_state ();
|
rl_free_line_state ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user