[gnome-builder] codespell: don't inherit stdin



commit 409e5f4f179733a4adad3c2c355b264c529a46af
Author: Christian Hergert <chergert redhat com>
Date:   Sat Jan 1 10:52:45 2022 -0800

    codespell: don't inherit stdin
    
    We need our own pipe to communicate with the subprocess or we risk two
    things reading from the same FD.

 src/plugins/codespell/ide-codespell-diagnostic-provider.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/codespell/ide-codespell-diagnostic-provider.c 
b/src/plugins/codespell/ide-codespell-diagnostic-provider.c
index 1baf99d08..94ff5abe3 100644
--- a/src/plugins/codespell/ide-codespell-diagnostic-provider.c
+++ b/src/plugins/codespell/ide-codespell-diagnostic-provider.c
@@ -152,9 +152,9 @@ ide_codespell_diagnostic_provider_diagnose_async (IdeDiagnosticProvider *provide
   ide_task_set_priority (task, G_PRIORITY_LOW);
   ide_task_set_task_data (task, g_object_ref (file), g_object_unref);
 
-  launcher = ide_subprocess_launcher_new (G_SUBPROCESS_FLAGS_STDIN_INHERIT |
+  launcher = ide_subprocess_launcher_new (G_SUBPROCESS_FLAGS_STDIN_PIPE |
                                           G_SUBPROCESS_FLAGS_STDOUT_PIPE |
-                                          G_SUBPROCESS_FLAGS_STDERR_PIPE);
+                                          G_SUBPROCESS_FLAGS_STDERR_SILENCE);
 
   ide_subprocess_launcher_push_argv (launcher, "codespell");
   /* ide_subprocess_launcher_push_argv (launcher, "-d"); */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]