Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
satella
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
satella
Commits
16eaf979
Commit
16eaf979
authored
8 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
yay
parent
40bc4404
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
satella/posix/signals.py
+1
-1
1 addition, 1 deletion
satella/posix/signals.py
tests/test_posix/__init__.py
+3
-5
3 additions, 5 deletions
tests/test_posix/__init__.py
with
4 additions
and
6 deletions
satella/posix/signals.py
+
1
−
1
View file @
16eaf979
...
...
@@ -34,7 +34,7 @@ def hang_until_sig(extra_signals=[]):
while
True
:
try
:
me_lock
.
acquire
()
#
me_lock.acquire()
return
except
InterruptedError
:
pass
This diff is collapsed.
Click to expand it.
tests/test_posix/__init__.py
+
3
−
5
View file @
16eaf979
...
...
@@ -19,15 +19,13 @@ class TestHUS(unittest.TestCase):
class
Delayer
(
threading
.
Thread
):
def
run
(
self
):
time
.
sleep
(
2
)
for
signame
,
handler
in
signal
.
call_args_list
:
print
(
handler
)
handler
(
signame
,
None
)
for
call
in
signal
.
call_args_list
:
call
.
handler
(
call
.
signalnum
,
None
)
from
satella.posix
import
hang_until_sig
#
Delayer().start()
Delayer
().
start
()
hang_until_sig
()
print
(
signal
.
call_args_list
)
class
TestPidlock
(
unittest
.
TestCase
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment