mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof: Actually set spawnable flags to inherit stdin
The code calculated flags but never actually set them on the spawnable,
so the `inherit-stdin` property did not work.
Fixes: 8799d2f0ca
See: https://gitlab.gnome.org/GNOME/sysprof/-/issues/76#note_1531919
This commit is contained in:
@ -666,6 +666,7 @@ sysprof_local_profiler_start_after_auth (SysprofLocalProfiler *self)
|
|||||||
|
|
||||||
g_ptr_array_add (env, NULL);
|
g_ptr_array_add (env, NULL);
|
||||||
|
|
||||||
|
sysprof_spawnable_set_flags (spawnable, flags);
|
||||||
sysprof_spawnable_set_environ (spawnable, (const gchar * const *)env->pdata);
|
sysprof_spawnable_set_environ (spawnable, (const gchar * const *)env->pdata);
|
||||||
sysprof_spawnable_append_args (spawnable, (const gchar * const *)priv->spawn_argv);
|
sysprof_spawnable_append_args (spawnable, (const gchar * const *)priv->spawn_argv);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user