Skip to content

Instantly share code, notes, and snippets.

@leffuy
Created January 28, 2011 08:10
Show Gist options
  • Save leffuy/799986 to your computer and use it in GitHub Desktop.
Save leffuy/799986 to your computer and use it in GitHub Desktop.
Look how nice I was, I printed you a man page digitally.
leflor@machine-7:~/codeground/Droid-Net$ man daemon
DAEMON(3) Linux Programmer's Manual DAEMON(3)
NAME
daemon - run in the background
SYNOPSIS
#include <unistd.h>
int daemon(int nochdir, int noclose);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
daemon(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
DESCRIPTION
The daemon() function is for programs wishing to detach themselves from
the controlling terminal and run in the background as system daemons.
...
For more see your local linux man pages found at http://kernel.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment