mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-26 12:36:15 -05:00
Fix for out of stack space on large music libraries
This commit is contained in:
@@ -457,7 +457,7 @@ void *signal_handler(void *arg) {
|
||||
/* process the signal */
|
||||
switch(sig) {
|
||||
case SIGINT:
|
||||
DPRINTF(ERR_LOG,"Got INT signal. Notifying daap server.\n");
|
||||
DPRINTF(ERR_LOG,"Got INT signal. Notifying daap server.\n");
|
||||
config.stop=1;
|
||||
return NULL;
|
||||
break;
|
||||
@@ -465,6 +465,9 @@ void *signal_handler(void *arg) {
|
||||
DPRINTF(ERR_LOG,"Got HUP signal. Notifying daap server.\n");
|
||||
config.reload=1;
|
||||
break;
|
||||
default:
|
||||
DPRINTF(ERR_LOG,"What am I doing here?\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -649,7 +652,7 @@ int main(int argc, char *argv[]) {
|
||||
config.reload=0;
|
||||
DPRINTF(ERR_LOG,"Reloading configuration\n");
|
||||
}
|
||||
sleep(10);
|
||||
sleep(2);
|
||||
}
|
||||
|
||||
DPRINTF(ERR_LOG,"Stopping gracefully\n");
|
||||
|
||||
Reference in New Issue
Block a user