Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
ca694272
Commit
ca694272
authored
Jan 12, 2015
by
Vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed indents
parent
92f9e9f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
interface.c
interface.c
+6
-6
main.c
main.c
+3
-2
No files found.
interface.c
View file @
ca694272
...
...
@@ -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
)
{
if
(
daemonize
)
event_incoming
(
ev
->
bev
,
BEV_EVENT_EOF
,
ev
);
//bufferevent_free(ev->bev);
if
(
daemonize
)
{
event_incoming
(
ev
->
bev
,
BEV_EVENT_EOF
,
ev
);
}
do_halt
(
0
);
}
void
do_safe_quit
(
int
arg_num
,
struct
arg
args
[],
struct
in_ev
*
ev
)
{
if
(
daemonize
)
event_incoming
(
ev
->
bev
,
BEV_EVENT_EOF
,
ev
);
//bufferevent_free(ev->bev);
if
(
daemonize
)
{
event_incoming
(
ev
->
bev
,
BEV_EVENT_EOF
,
ev
);
}
safe_quit
=
1
;
}
...
...
main.c
View file @
ca694272
...
...
@@ -746,8 +746,9 @@ void sig_term_handler (int signum __attribute__ ((unused))) {
}
void
do_halt
(
int
error
)
{
if
(
daemonize
)
return
;
if
(
daemonize
)
{
return
;
}
if
(
!
readline_disabled
)
{
rl_free_line_state
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment