parent
3eb3cc7898
commit
5dac5eb451
2 changed files with 1 additions and 10 deletions
|
@ -179,14 +179,12 @@ static int pipefd[2] = {-1, -1};
|
||||||
static splay_tree_t signal_tree = {.compare = (splay_compare_t)signal_compare};
|
static splay_tree_t signal_tree = {.compare = (splay_compare_t)signal_compare};
|
||||||
|
|
||||||
static void signal_handler(int signum) {
|
static void signal_handler(int signum) {
|
||||||
unsigned char num = (unsigned char)signum;
|
unsigned char num = signum;
|
||||||
write(pipefd[1], &num, 1);
|
write(pipefd[1], &num, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void signalio_handler(void *data, int flags) {
|
static void signalio_handler(void *data, int flags) {
|
||||||
unsigned char signum;
|
unsigned char signum;
|
||||||
UNUSED(flags);
|
|
||||||
UNUSED(data);
|
|
||||||
if(read(pipefd[0], &signum, 1) != 1)
|
if(read(pipefd[0], &signum, 1) != 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
#include "prf.h"
|
#include "prf.h"
|
||||||
#include "sptps.h"
|
#include "sptps.h"
|
||||||
#include "utils.h"
|
|
||||||
|
|
||||||
unsigned int sptps_replaywin = 16;
|
unsigned int sptps_replaywin = 16;
|
||||||
|
|
||||||
|
@ -53,15 +52,9 @@ unsigned int sptps_replaywin = 16;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void sptps_log_quiet(sptps_t *s, int s_errno, const char *format, va_list ap) {
|
void sptps_log_quiet(sptps_t *s, int s_errno, const char *format, va_list ap) {
|
||||||
UNUSED(s);
|
|
||||||
UNUSED(s_errno);
|
|
||||||
UNUSED(format);
|
|
||||||
UNUSED(ap);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void sptps_log_stderr(sptps_t *s, int s_errno, const char *format, va_list ap) {
|
void sptps_log_stderr(sptps_t *s, int s_errno, const char *format, va_list ap) {
|
||||||
UNUSED(s);
|
|
||||||
UNUSED(s_errno);
|
|
||||||
vfprintf(stderr, format, ap);
|
vfprintf(stderr, format, ap);
|
||||||
fputc('\n', stderr);
|
fputc('\n', stderr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue