daemonize

Name

daemonize -- 

Synopsis



int         prelude_daemonize               (const char *lockfile);

Description

Details

prelude_daemonize ()

int         prelude_daemonize               (const char *lockfile);

Put the caller in the background. If lockfile is not NULL, a lock for this program is being created.

The lockfile is automatically unlinked on exit.

lockfile :

Filename to a lockfile.

Returns :

0 on success, -1 if an error occured.