Crossfire Server, Branch 1.12  R12190
Functions
daemon.c File Reference

Daemon mode for the server. More...

#include <global.h>
#include <sproto.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <stdio.h>
#include <sys/file.h>
Include dependency graph for daemon.c:

Go to the source code of this file.

Functions

void become_daemon (void)
 Starts the server as a daemon.

Detailed Description

Daemon mode for the server.

Shamelessly swiped from xdm source code. Appropriate copyrights kept, and hereby follow ERic mehlhaff, 3/11/92

xdm - display manager daemon

XConsortium:
daemon.c,v 1.5 89/01/20 10:43:49 jim Exp

Copyright 1988 Massachusetts Institute of Technology

Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of M.I.T. not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. M.I.T. makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.

Author: Keith Packard, MIT X Consortium

Definition in file daemon.c.


Function Documentation

void become_daemon ( void  )

Starts the server as a daemon.

Definition at line 72 of file daemon.c.

References getpid, and logfile.

Referenced by init().

Here is the caller graph for this function: