Skip to content
Snippets Groups Projects

wrap: execute nvidia-modprobe before entering the container

Merged Ludovico de Nittis requested to merge wip/nvidia_modprobe into master
1 unresolved thread
+ 6
6
@@ -176,10 +176,10 @@ pv_run_sync (const char * const * argv,
GError **error)
{
gsize len;
gint exit_status;
gint wait_status;
g_autofree gchar *output = NULL;
g_autofree gchar *errors = NULL;
guint i;
gsize i;
g_autoptr(GString) command = g_string_new ("");
g_return_val_if_fail (argv != NULL, FALSE);
@@ -212,7 +212,7 @@ pv_run_sync (const char * const * argv,
NULL, NULL,
&output,
&errors,
&exit_status,
&wait_status,
error))
return FALSE;
@@ -220,8 +220,8 @@ pv_run_sync (const char * const * argv,
if (exit_status_out != NULL)
{
if (WIFEXITED (exit_status))
*exit_status_out = WEXITSTATUS (exit_status);
if (WIFEXITED (wait_status))
*exit_status_out = WEXITSTATUS (wait_status);
}
len = strlen (output);
@@ -232,7 +232,7 @@ pv_run_sync (const char * const * argv,
g_debug ("-> %s", output);
if (!g_spawn_check_exit_status (exit_status, error))
if (!g_spawn_check_exit_status (wait_status, error))
return FALSE;
if (output_out != NULL)
Loading