From 184a643f177363b8cb2a44dd04221de556cebec0 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 7 May 2020 16:59:20 +0200 Subject: Don't bother creating pipes that aren't used --- src/gui_backend_local.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui_backend_local.c') diff --git a/src/gui_backend_local.c b/src/gui_backend_local.c index 9e7d5559..0c459d28 100644 --- a/src/gui_backend_local.c +++ b/src/gui_backend_local.c @@ -140,7 +140,7 @@ static int run_unitcell(struct crystfelproject *proj, int n_args; int i; int r; - int ch_stdin, ch_stdout, ch_stderr; + int ch_stderr; GError *error; struct local_backend_priv *priv = proj->backend_private; @@ -212,7 +212,7 @@ static int run_unitcell(struct crystfelproject *proj, | G_SPAWN_DO_NOT_REAP_CHILD, NULL, NULL, &priv->indexamajig_pid, - &ch_stdin, &ch_stdout, &ch_stderr, + NULL, NULL, &ch_stderr, &error); if ( r == FALSE ) { ERROR("Failed to run indexamajig: %s\n", -- cgit v1.2.3