Fix for out of stack space on large music libraries

This commit is contained in:
Ron Pedde
2004-04-22 04:20:30 +00:00
parent 2dee0cebd4
commit 8ef12d52f6
2 changed files with 38 additions and 34 deletions

View File

@@ -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");