Giter VIP home page Giter VIP logo

daemons's People

Contributors

gabriella439 avatar guibou avatar isturdy avatar scvalex avatar tfausak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

daemons's Issues

module name System.Daemon collapses with the MissingH package

The MissingH package also exports a module named System.Daemon. There is no problem installing both packages, however, when loading System.Daemon in ghci, it complains

Ξ»> import System.Daemon
<no location info>:
    Ambiguous module name `System.Daemon':
      it was found in multiple packages: MissingH-1.2.0.0 daemons-0.1.2

Is there a way to work around this?

Why SIGQUIT for kill?

Thank you for your work on this package!

Is there a reason you use SIGQUIT for kill and killAndWait? The default behavior on Linux is to terminate the process and dump core on SIGQUIT. I think it might make more sense to use SIGTERM, which is the default for kill(1). Would you be inclined to accept a PR to switch to SIGTERM?

double-fork race condition

50% of the time or more, the extra process created in the double-fork sticks around, as a parent of the daemon. The daemon works, except when it exits, it remains a zombie because the parent doesn't wait on its result. When the parent is killed with SIGKILL (-9), then both processes die.

Thanks for building this...

... needed to daemonize our Haskell web-server and this package did the job in 5 mins. Great documentation! πŸ‘

Does not build with ghc 8.8

Discussed with my friend @guibou who is a bit more handy than me with haskell. He said he'll do a PR

117   β”‚ Building library for daemons-0.2.1..
118   β”‚ [1 of 5] Compiling Control.Pipe.Serialize ( src/Control/Pipe/Serialize.hs, dist/dist-sandbox-3b586ae8/build/Control/Pipe/Serialize.o )
119   β”‚
120   β”‚ src/Control/Pipe/Serialize.hs:33:16: error:
121   β”‚     β€’ Could not deduce (MonadFail m) arising from a use of β€˜loop’
122   β”‚       from the context: (Serialize a, Monad m)
123   β”‚         bound by the type signature for:
124   β”‚                    deserializer :: forall a (m :: * -> *).
125   β”‚                                    (Serialize a, Monad m) =>
126   β”‚                                    Pipe ByteString a m ()
127   β”‚         at src/Control/Pipe/Serialize.hs:32:1-64
128   β”‚       Possible fix:
129   β”‚         add (MonadFail m) to the context of
130   β”‚           the type signature for:
131   β”‚             deserializer :: forall a (m :: * -> *).
132   β”‚                             (Serialize a, Monad m) =>
133   β”‚                             Pipe ByteString a m ()
134   β”‚     β€’ In the expression: loop Nothing Nothing
135   β”‚       In an equation for β€˜deserializer’:
136   β”‚           deserializer
137   β”‚             = loop Nothing Nothing
138   β”‚             where
139   β”‚                 loop mk mbin
140   β”‚                   = do bin <- maybe await return mbin
141   β”‚                        ....
142   β”‚    |
143   β”‚ 33 | deserializer = loop Nothing Nothing
144   β”‚    |                ^^^^^^^^^^^^^^^^^^^^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.