[Xorp-cvs] XORP cvs commit: xorp/libxorp xorp/rtrmgr

Bruce Simpson bms at icir.org
Tue Jun 17 01:29:42 PDT 2008


CVSROOT:	/usr/local/www/data/cvs
Module name:	xorp
Changes by:	bms at chum.icir.org	2008-06-17 08:29:42 UTC

XORP CVS repository


Modified files:
	libxorp       Makefile.am Makefile.in 
	rtrmgr        main_rtrmgr.cc 

Added files:
	libxorp       daemon.c daemon.h 

Log message:
	Commit UNIX daemonization support.
	Briefly tested on FreeBSD.
	
	In xorp_rtrmgr:
	 * Add option '-l' to redirect logging to the
	   specified log file name in append mode.
	   * Caveat: Some early startup messages from the FEA are not redirected.
	 * Add option '-P' to write the process ID of the Router Manager
	   to the given file. If the process is not daemonized this is
	   simply the current PID as retrieved by getpid().
	
	Daemonization is a no-op on Windows and believed portable to all
	platforms with POSIX fork(), dup2(), and setsid() calls.
	
	[Windows would require special NT service support.]
	
	Requested by:   Atanu Ghosh
	Bugzilla URL:   http://bugzilla.xorp.org/show_bug.cgi?id=759

Revision  Changes                               Path
1.54      +3 -1;  commitid: 78c74857756441a7;   xorp/libxorp/Makefile.am
1.74      +8 -7;  commitid: 78c74857756441a7;   xorp/libxorp/Makefile.in
1.1       +105 -0                               xorp/libxorp/daemon.c (new)
1.1       +65 -0                                xorp/libxorp/daemon.h (new)
1.75      +89 -7;  commitid: 78c74857756441a7;  xorp/rtrmgr/main_rtrmgr.cc



More information about the Xorp-cvs mailing list