mirror of https://git.48k.eu/ogserver
rest: do not exit() if execlp() fails
execlp() should not ever fail, but if it ever happens, return -1 instead of exitting this daemon.master v1.2.5-6
parent
5e8e1c6467
commit
b100c570a0
|
@ -1247,7 +1247,7 @@ static int og_set_client_mode(struct og_dbi *dbi, const char *mac,
|
||||||
"/opt/opengnsys/bin/setclientmode", filename, NULL);
|
"/opt/opengnsys/bin/setclientmode", filename, NULL);
|
||||||
syslog(LOG_ERR, "failed script execution (%s:%d)\n",
|
syslog(LOG_ERR, "failed script execution (%s:%d)\n",
|
||||||
__func__, __LINE__);
|
__func__, __LINE__);
|
||||||
exit(EXIT_FAILURE);
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
wait(&status);
|
wait(&status);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue