diff --git a/src/doompanning.cc b/src/doompanning.cc index dbe575d..91ddbab 100644 --- a/src/doompanning.cc +++ b/src/doompanning.cc @@ -113,17 +113,15 @@ void spawn_doom_posix_spawn(ControllerContext &ctx) // TODO: Close stdin and stdout? Leave them open for now to see the logging // output. - // FIXME: SDL is not able to init its sound system in the doomchild. Try - // something similar to xdg-open where a doomgrandchild execvp()s the doom. pid_t pid; if (auto err = posix_spawn(&pid, DOOM_EXECUTABLE, nullptr, nullptr, - const_cast(argv), nullptr)) + const_cast(argv), __environ)) { - log_error("Could not spawn doom: %s", strerror(err)); + log_error("Could not spawn %s: %s", DOOM_EXECUTABLE, strerror(err)); return; } - log_info("Spawned new doom, pid=%d", pid); + log_info("Spawned new %s, pid=%d", DOOM_EXECUTABLE, pid); } inline void spawn_doom(ControllerContext &ctx)