early SIGSEGV

This commit is contained in:
Nicolas Viennot 2015-12-23 23:04:56 -05:00
parent 42ac90ca49
commit 1b4ab580f3
2 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,6 @@ void tmate_session_init(struct event_base *base)
tmate_session.ev_base = base;
ssh_set_log_callback(ssh_log_function);
tmate_catch_sigsegv();
tmate_encoder_init(&tmate_session.encoder);
tmate_decoder_init(&tmate_session.decoder);

2
tmux.c
View File

@ -31,6 +31,7 @@
#include <unistd.h>
#include "tmux.h"
#include "tmate.h"
#if defined(DEBUG) && defined(__OpenBSD__)
extern char *malloc_options;
@ -219,6 +220,7 @@ main(int argc, char **argv)
flags = 0;
#ifdef TMATE
tmate_catch_sigsegv();
flags |= CLIENT_256COLOURS | CLIENT_UTF8;
#endif