[gnome-builder] libide/foundry: ensure cancellation of command stages



commit 35ba01d3b9d39c53c88d4ea80091e40a3f5f66d6
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jul 19 16:32:33 2022 -0700

    libide/foundry: ensure cancellation of command stages
    
    These don't get the auto-cancellation from ide_subprocess_launcher_spawn(),
    so we need to ensure they are cancelled manually.

 src/libide/foundry/ide-pipeline-stage-command.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/libide/foundry/ide-pipeline-stage-command.c b/src/libide/foundry/ide-pipeline-stage-command.c
index 4301afb7d..87a6d4707 100644
--- a/src/libide/foundry/ide-pipeline-stage-command.c
+++ b/src/libide/foundry/ide-pipeline-stage-command.c
@@ -108,6 +108,8 @@ ide_pipeline_stage_command_build_async (IdePipelineStage    *stage,
       IDE_EXIT;
     }
 
+  ide_subprocess_send_signal_upon_cancel (subprocess, cancellable, SIGKILL);
+
   ide_subprocess_wait_check_async (subprocess,
                                    cancellable,
                                    ide_pipeline_stage_command_wait_check_cb,
@@ -171,6 +173,8 @@ ide_pipeline_stage_command_clean_async (IdePipelineStage    *stage,
       IDE_EXIT;
     }
 
+  ide_subprocess_send_signal_upon_cancel (subprocess, cancellable, SIGKILL);
+
   ide_subprocess_wait_check_async (subprocess,
                                    cancellable,
                                    ide_pipeline_stage_command_wait_check_cb,


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