Bugfix: Fixes #456, sysdm - segfault on Alpine Linux

This commit is contained in:
Rory Fewell
2025-04-17 20:35:34 +01:00
parent 57cc639482
commit 45a78d3ac3
4 changed files with 28 additions and 5 deletions

View File

@@ -115,6 +115,7 @@ static gboolean do_command(
gchar** argv;
gchar* display;
gboolean success;
gint wait_status = 0;
WINTC_LOG_USER_DEBUG("Launching %s", cmdline);
@@ -156,7 +157,7 @@ static gboolean do_command(
display,
standard_output,
standard_error,
NULL,
&wait_status,
out_error
);
}
@@ -171,6 +172,18 @@ static gboolean do_command(
return FALSE;
}
if (
!g_spawn_check_wait_status(
wait_status,
out_error
)
)
{
WINTC_LOG_USER_DEBUG("Process exited abnormally.");
return FALSE;
}
WINTC_LOG_USER_DEBUG("Done.");
return TRUE;