From d04e5c567874bdb4614db3ca22b5ec2c164caaf7 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 19 Jul 2023 19:07:05 -0700 Subject: [PATCH] libsysprof: silence stderr --- src/libsysprof/sysprof-linux-instrument.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsysprof/sysprof-linux-instrument.c b/src/libsysprof/sysprof-linux-instrument.c index e2e491de..f9a8726f 100644 --- a/src/libsysprof/sysprof-linux-instrument.c +++ b/src/libsysprof/sysprof-linux-instrument.c @@ -306,7 +306,7 @@ add_process_output_as_file (SysprofRecording *recording, if (!g_shell_parse_argv (command_line, &argc, &argv, &error)) goto error; - launcher = g_subprocess_launcher_new (G_SUBPROCESS_FLAGS_STDOUT_PIPE); + launcher = g_subprocess_launcher_new (G_SUBPROCESS_FLAGS_STDOUT_PIPE | G_SUBPROCESS_FLAGS_STDERR_SILENCE); if (!(subprocess = g_subprocess_launcher_spawnv (launcher, (const char * const *)argv, &error))) goto error;