From cff02d686c70c55c1b9995d437b5d2003fe549cb Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 24 May 2012 23:49:40 -0700 Subject: [PATCH] Update manpage, fix usage string printf. --- man/guacd.8 | 9 ++++++++- src/daemon.c | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/man/guacd.8 b/man/guacd.8 index 9843ea9..7aa6146 100644 --- a/man/guacd.8 +++ b/man/guacd.8 @@ -1,4 +1,4 @@ -.TH guacd 8 "10 Dec 2011" "version 0.5.0" "Guacamole" +.TH guacd 8 "6 May 2012" "version 0.6.0" "Guacamole" . .SH NAME guacd \- Guacamole proxy daemon @@ -8,6 +8,7 @@ guacd \- Guacamole proxy daemon [\fB-b\fR \fIHOST\fR] [\fB-l\fR \fIPORT\fR] [\fB-p\fR \fIFILE\fR] +[\fB-f\fR] . .SH DESCRIPTION .B guacd @@ -38,6 +39,12 @@ Causes to write the PID of the daemon process to the specified file. This is useful for init scripts and is used by the provided init script. +.TP +\fB\-f\fR +Causes +.B guacd +to run in the foreground, rather than automatically forking into the +background. . .SH AUTHOR Written by Michael Jumper diff --git a/src/daemon.c b/src/daemon.c index a727dc6..5435865 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -227,7 +227,7 @@ int main(int argc, char* argv[]) { fprintf(stderr, "USAGE: %s" " [-l LISTENPORT]" " [-b LISTENADDRESS]" - " [-p PIDFILE]", + " [-p PIDFILE]" " [-f]\n", argv[0]); exit(EXIT_FAILURE); -- 1.7.10.4