Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
0c6493aa
Commit
0c6493aa
authored
Jul 25, 2003
by
Karl Heyes
Browse files
place the config reread flag in the global structure
svn path=/trunk/icecast/; revision=5175
parent
9482db60
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/connection.c
View file @
0c6493aa
...
...
@@ -344,13 +344,13 @@ void connection_accept_loop(void)
while
(
global
.
running
==
ICE_RUNNING
)
{
if
(
schedule_config_reread
)
if
(
global
.
schedule_config_reread
)
{
/* reread config file */
INFO0
(
"Scheduling config reread ..."
);
connection_inject_event
(
EVENT_CONFIG_READ
,
NULL
);
schedule_config_reread
=
0
;
global
.
schedule_config_reread
=
0
;
}
con
=
_accept_connection
();
...
...
src/global.h
View file @
0c6493aa
...
...
@@ -21,6 +21,7 @@ typedef struct ice_global_tag
int
sources
;
int
clients
;
int
schedule_config_reread
;
avl_tree
*
source_tree
;
...
...
src/sighandler.c
View file @
0c6493aa
...
...
@@ -15,8 +15,6 @@
#include
"logging.h"
#include
"event.h"
#include
"sighandler.h"
#define CATMODULE "sighandler"
#ifndef _WIN32
...
...
@@ -24,8 +22,6 @@ void _sig_hup(int signo);
void
_sig_die
(
int
signo
);
#endif
int
schedule_config_reread
=
0
;
void
sighandler_initialize
(
void
)
{
#ifndef _WIN32
...
...
@@ -40,7 +36,7 @@ void sighandler_initialize(void)
void
_sig_hup
(
int
signo
)
{
schedule_config_reread
=
1
;
global
.
schedule_config_reread
=
1
;
/* some OSes require us to reattach the signal handler */
signal
(
SIGHUP
,
_sig_hup
);
}
...
...
Write
Preview
Supports
Markdown
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