Skip to content

Commit

Permalink
issue 19 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mom040267 committed Aug 29, 2015
1 parent 0752c18 commit 2500074
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/apps/common/ns_turn_utils.c
Expand Up @@ -236,6 +236,7 @@ static int to_syslog = 0;
static int simple_log = 0;
static char log_fn[FILE_STR_LEN]="\0";
static char log_fn_base[FILE_STR_LEN]="\0";
static volatile int to_reset_log_file = 0;

static turn_mutex log_mutex;
static int log_mutex_inited = 0;
Expand Down Expand Up @@ -344,13 +345,18 @@ static void set_log_file_name_func(char *base, char *f, size_t fsz)
static void sighup_callback_handler(int signum)
{
if(signum == SIGHUP) {
printf("%s: resetting the log file\n",__FUNCTION__);
reset_rtpprintf();
to_reset_log_file = 1;
}
}

static void set_rtpfile(void)
{
if(to_reset_log_file) {
printf("%s: resetting the log file\n",__FUNCTION__);
reset_rtpprintf();
to_reset_log_file = 0;
}

if(to_syslog) {
return;
} else if (!_rtpfile) {
Expand Down

1 comment on commit 2500074

@elfring
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is an other commit message more helpful for the readers of your software changes?

Please sign in to comment.