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
51251604
Commit
51251604
authored
8 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
ccd677bb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
satella/posix/__init__.py
+0
-18
0 additions, 18 deletions
satella/posix/__init__.py
with
0 additions
and
18 deletions
satella/posix/__init__.py
+
0
−
18
View file @
51251604
...
...
@@ -5,9 +5,7 @@ UNIX things
from
__future__
import
print_function
,
absolute_import
,
division
import
six
import
logging
import
functools
import
os
import
warnings
from
.daemon
import
daemonize
from
.pidlock
import
AcquirePIDLock
from
.signals
import
hang_until_sig
...
...
@@ -25,19 +23,3 @@ def is_running_as_root():
"""
return
os
.
geteuid
()
==
0
try
:
os
.
fork
except
AttributeError
:
logger
.
warn
(
'
Running on Windows, skipping fork
'
)
else
:
@functools.wraps
(
os
.
fork
)
def
_os_path_monkey_patch
():
# os.fork() is replaced with that
_myself
.
on_before_fork
()
pid
=
os
.
fork
()
_myself
.
on_after_fork
(
pid
==
0
)
# on_after_fork(is_child::bool)
return
pid
os
.
fork
=
_os_path_monkey_patch
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