From dfbfb4b08c27b24596e0952e7fe362a81568c8a0 Mon Sep 17 00:00:00 2001 From: oxmox Date: Sun, 19 Feb 2023 01:46:31 +0100 Subject: [PATCH] and back to spawning doomsims --- src/doompanning.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/doompanning.cc b/src/doompanning.cc index bcc84b3..694a059 100644 --- a/src/doompanning.cc +++ b/src/doompanning.cc @@ -62,14 +62,12 @@ void spawn_doom(ControllerContext &ctx) // TODO: Close stdin and stdout? Leave them open for now to see the logging // output. - #if 0 if (auto err = posix_spawn(&ds.id, "doomsim", nullptr, nullptr, const_cast(argv), nullptr)) { log_error("Could not spawn doom: %s", strerror(err)); return; } - #endif ds.texture = SDL_CreateTexture(ctx.renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, DoomScreenWidth, DoomScreenHeight); @@ -179,7 +177,7 @@ void final_cleanup(ControllerContext &ctx) if (!ctx.dooms.empty()) { log_warn("final cleanup: terminating all %zu remaining dooms", ctx.dooms.size()); - //signal_all_dooms(ctx, SIGTERM); + signal_all_dooms(ctx, SIGTERM); } }