1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04:00

Cleanup: Corrected formatting

This commit is contained in:
Philipp Schafft 2023-06-04 08:57:57 +00:00
parent d42646541c
commit 9a2e911bee

View File

@ -224,13 +224,11 @@ static void _run_script (event_exec_t *self, event_t *event) {
/* do a fork twice so that the command has init as parent */ /* do a fork twice so that the command has init as parent */
external_pid = fork(); external_pid = fork();
switch (external_pid) switch (external_pid) {
{
case 0: case 0:
switch (pid = fork ()) switch (pid = fork()) {
{
case -1: case -1:
ICECAST_LOG_ERROR("Unable to fork %s (%s)", self->executable, strerror (errno)); ICECAST_LOG_ERROR("Unable to fork %s (%s)", self->executable, strerror(errno));
break; break;
case 0: /* child */ case 0: /* child */
if (access(self->executable, R_OK|X_OK) != 0) { if (access(self->executable, R_OK|X_OK) != 0) {
@ -246,10 +244,10 @@ static void _run_script (event_exec_t *self, event_t *event) {
} }
_exit(0); _exit(0);
case -1: case -1:
ICECAST_LOG_ERROR("Unable to fork %s", strerror (errno)); ICECAST_LOG_ERROR("Unable to fork %s", strerror(errno));
break; break;
default: /* parent */ default: /* parent */
waitpid (external_pid, NULL, 0); waitpid(external_pid, NULL, 0);
break; break;
} }
} }