Skip to content

Fix double exit bug in parallel pipelines#739

Merged
angelhof merged 4 commits intobinpash:futurefrom
BolunThompson:double-exit-bug
Jan 16, 2025
Merged

Fix double exit bug in parallel pipelines#739
angelhof merged 4 commits intobinpash:futurefrom
BolunThompson:double-exit-bug

Conversation

@BolunThompson
Copy link
Contributor

@BolunThompson BolunThompson commented Dec 29, 2024

Fixes #736, #738. This wasn’t a problem on Ubuntu 20.04 because the EXIT handler wasn’t called (for no obvious reason), so it only exited once.

Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>
Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>
@github-actions
Copy link

OS =
CPU =
Ram =
Hash = 509fcf0
Kernel=
||
|-|-|-|-|-|-|-|-|-|

@github-actions
Copy link

OS =
CPU =
Ram =
Hash = 3a94bf6
Kernel=
||
|-|-|-|-|-|-|-|-|-|

@github-actions
Copy link

OS:ubuntu-20.04
Sun Dec 29 23:22:23 UTC 2024
intro: 2/2 tests passed.
interface: 42/42 tests passed.
compiler: 54/54 tests passed.

The reason why it worked on Ubuntu 20.04 was that the EXIT handler was
not called, while on Ubuntu 24.04 it correctly is.

Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>
@github-actions
Copy link

OS =
CPU =
Ram =
Hash = 07b09be
Kernel=
||
|-|-|-|-|-|-|-|-|-|

@github-actions
Copy link

OS:ubuntu-20.04
Mon Dec 30 00:14:24 UTC 2024
intro: 2/2 tests passed.
interface: 42/42 tests passed.
compiler: 54/54 tests passed.

Copy link
Member

@angelhof angelhof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add read my comment and if you agree add a comment in the code so that we remember that? After this is done (or if my comment doesn't make sense) we will merge :)

Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>
@github-actions
Copy link

github-actions bot commented Jan 5, 2025

OS =
CPU =
Ram =
Hash = ad1062a
Kernel=
||
|-|-|-|-|-|-|-|-|-|

@github-actions
Copy link

github-actions bot commented Jan 5, 2025

OS:ubuntu-20.04
Sun Jan 5 23:43:07 UTC 2025
intro: 2/2 tests passed.
interface: 42/42 tests passed.
compiler: 54/54 tests passed.

@angelhof angelhof merged commit 3609bd5 into binpash:future Jan 16, 2025
7 checks passed
kwakubiney pushed a commit to kwakubiney/pash that referenced this pull request Jan 28, 2025
* Fix double-exit bug in parallel pipelines

Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>

* Assert running_procs is positive

Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>

* Fix: don't use exit handler

The reason why it worked on Ubuntu 20.04 was that the EXIT handler was
not called, while on Ubuntu 24.04 it correctly is.

Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>

* Add comment explanation

Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>

---------

Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants