Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add ProcessLocker to ensure that no more than one Tribler GUI/Core process runs locally at any moment #7212
Add ProcessLocker to ensure that no more than one Tribler GUI/Core process runs locally at any moment #7212
Changes from 57 commits
ad36295
7549918
34e9059
cda237f
fe83e29
60f7e59
7879c7f
1701e4b
079681f
7baba6d
72d1a93
367b560
962d341
3063ae9
5f9a9a0
c1c71ba
9c30a58
20f521a
3a9ade8
ecc74da
62ef972
db7e1b1
cff4aef
f17a1f5
35c143a
09aa56a
3235a49
92ad873
fc6d33d
e0243c2
3d9d77c
e83af79
f38064c
e0fe240
4df92b0
e71fa7c
dd10b80
a0e3bd4
daec7b5
58960da
0a9640c
a72adb0
fc3f36c
c4e453e
f83445c
f9e1939
faa58a9
db980dd
d735cb0
38a047a
92df7f2
04b4a06
19e9ea7
e40b8ce
308a577
8c60535
b944cd0
90a8db4
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that it is possible to return
None
instead of0
here: https://github.com/kozlovsky/tribler/blob/process_locker/src/tribler/core/start_core.py#L120There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand. In PR it already returns
None
and not0
. Or you mean to replacereturn session.exit_code
withreturn session.exit_code or None
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me it looks clearer is the
exit_code
is initially set to None, with the meaningthe exit code is not set
, comparing to converting0
toNone
at a latter stage.This file was deleted.