File: daemonize.h

package info (click to toggle)
superd 0.0.3-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 144 kB
  • ctags: 81
  • sloc: ansic: 737; makefile: 92; sh: 27
file content (14 lines) | stat: -rw-r--r-- 282 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef DAEMONIZE_H
#define DAEMONIZE_H

/* sys/types.h is needed because although the linux man page only lists unistd.h
   as a requirement for fork(), pid_t is defined in sys/types.h
*/
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>


void daemonize();

#endif