Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only watch signal if main thread #152

Merged
merged 1 commit into from
Apr 17, 2024
Merged

only watch signal if main thread #152

merged 1 commit into from
Apr 17, 2024

Conversation

bboynton97
Copy link
Contributor

@bboynton97 bboynton97 commented Apr 16, 2024

If the process is not running on the main thread, do not watch for signal interruptions

Closes ENG-156

@bboynton97 bboynton97 requested review from areibman and HowieG April 16, 2024 20:29
@bboynton97
Copy link
Contributor Author

Drafting this because i tested it for the main thread case but not child thread case. I ran out of time before my flight boards

@bboynton97
Copy link
Contributor Author

I tested this with a jupyter notebook and added:

else:
  print('not main thread')

I ran it on a child process and it printed 'not main thread' and did not start signal tracking.

@bboynton97 bboynton97 marked this pull request as ready for review April 17, 2024 20:47
@bboynton97
Copy link
Contributor Author

Closes ENG-156

@bboynton97 bboynton97 merged commit a1c998d into main Apr 17, 2024
2 checks passed
@bboynton97 bboynton97 deleted the sigint-on-main-only branch April 17, 2024 21:18
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