Comments (2)
Is disabling closing of file descriptors altogether and managing your pre-daemonization descriptors yourself a proper way to work around this?
from daemonize.
@miigotu As an option - definitely. But i would suggest adding an optional function parameter (callback) that should handle the closing, to override the built-in logic.
Moreover, the closing should definitely be handled by the child side of the post-fork pair. Imagine a scenario, when the pipe is created. One side (descriptor) belongs to a parent and the other side to the child (now daemon). Parent process can't close any of them before doing the fork. It's the child's responsibility to close the parent's side and vice versa. But both must do it post-fork.
from daemonize.
Related Issues (20)
- Passing Parameter HOT 1
- Provide a callback function for a graceful shutdown
- Thread stopped when daemonize start HOT 2
- Calling to exit() doesn't seem to work
- Calls to self.log.warn() should be self.log.warning() HOT 1
- Passing Arguments HOT 1
- Why this lib doesnt fork twice? HOT 2
- in foreground mode, logging is still done to the syslog
- Error when logging was not initialize yet HOT 2
- Deprecation warning for "logger.warn" still exists on pypi HOT 1
- Daemonized script doesn't seem to be running HOT 2
- Testsuite fails to run if there is no /usr/bin/python HOT 2
- python3.8.3 has the following errors
- DNS lookup before fork causes lookup failure after fork on OSX HOT 1
- Daemonize does not work with requests library HOT 3
- Daemonizing multiple functions at once HOT 1
- Set process name
- Ignored "SystemExit: 0" exception on exit
- Is this project abandoned? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daemonize.