mirror of
https://github.com/rozniak/xfce-winxp-tc.git
synced 2026-05-01 11:41:30 +00:00
Bugfix: Fixes #456, sysdm - segfault on Alpine Linux
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user