Content-Length: 5422 | pFad | http://hackage.haskell.org/package/MissingH-1.0.2.1/docs/System-Daemon.html

System.Daemon
 MissingH-1.0.2.1: Large utility librarySource codeContentsIndex
System.Daemon
Portabilityportable to platforms with POSIX process\/signal tools
Stabilityprovisional
MaintainerJohn Goerzen <jgoerzen@complete.org>
Description

Tools for writing daemons/server processes

Written by John Goerzen, jgoerzen@complete.org

Please note: Most of this module is not compatible with Hugs.

Messages from this module are logged under System.Daemon. See System.Log.Logger for details.

Based on background from http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16 and http://www.haskell.org/hawiki/HaskellUnixDaemon.

This module is not available on Windows.

Synopsis
detachDaemon :: IO ()
Documentation
detachDaemon :: IO ()Source

Detach the process from a controlling terminal and run it in the background, handling it with standard Unix deamon semantics.

After running this, please note the following side-effects:

  • The PID of the running process will change
  • stdin, stdout, and stderr will not work (they'll be set to /dev/null)
  • CWD will be changed to /

I highly suggest running this function before starting any threads.

Note that this is not intended for a daemon invoked from inetd(1).

Produced by Haddock version 2.6.0








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://hackage.haskell.org/package/MissingH-1.0.2.1/docs/System-Daemon.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy