Skip to content

Commit

Permalink
DPL: ignore SIGUSR1 until we are ready to handle it
Browse files Browse the repository at this point in the history
This should fix a race condition when the parent decides to quit too
quickly.
  • Loading branch information
ktf committed Dec 31, 2023
1 parent 73bc991 commit a1e0e75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Framework/Core/src/runDataProcessing.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,12 @@ void spawnDevice(uv_loop_t* loop,
if (id == 0) {
// We allow being debugged and do not terminate on SIGTRAP
signal(SIGTRAP, SIG_IGN);
// We immediately ignore SIGUSR1 and SIGUSR2 so that we do not
// get killed by the parent trying to force stepping children.
// We will re-enable them later on, when it is actually safe to
// do so.
signal(SIGUSR1, SIG_IGN);
signal(SIGUSR2, SIG_IGN);

// This is the child.
// For stdout / stderr, we close the read part of the pipe, the
Expand Down

0 comments on commit a1e0e75

Please sign in to comment.