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
ce1d3a13
Commit
ce1d3a13
authored
Sep 23, 2014
by
Vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed readline_disable mode
parent
df06d085
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
interface.c
interface.c
+1
-0
loop.c
loop.c
+1
-0
main.c
main.c
+11
-0
No files found.
interface.c
View file @
ce1d3a13
...
...
@@ -970,6 +970,7 @@ extern char *lua_file;
extern
struct
event
*
term_ev
;
void
do_clear
(
int
arg_num
,
struct
arg
args
[],
struct
in_ev
*
ev
)
{
logprintf
(
"Do_clear
\n
"
);
tgl_free_all
();
free
(
default_username
);
free
(
config_filename
);
...
...
loop.c
View file @
ce1d3a13
...
...
@@ -141,6 +141,7 @@ static void stdin_read_callback_all (int arg, short what, struct event *self) {
break
;
}
}
break
;
}
}
}
...
...
main.c
View file @
ce1d3a13
...
...
@@ -34,6 +34,14 @@
#else
#include <editline/readline.h>
#endif
#ifdef EVENT_V2
#include <event2/event.h>
#include <event2/bufferevent.h>
#include <event2/buffer.h>
#else
#include <event.h>
#include "event-old.h"
#endif
#include <sys/stat.h>
#include <sys/socket.h>
...
...
@@ -676,6 +684,9 @@ void sig_term_handler (int signum __attribute__ ((unused))) {
if
(
write
(
1
,
"SIGTERM/SIGINT received
\n
"
,
25
)
<
0
)
{
// Sad thing
}
if
(
tgl_state
.
ev_base
)
{
event_base_loopbreak
(
tgl_state
.
ev_base
);
}
sigterm_cnt
++
;
}
...
...
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