projects
/
guacd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e80e6f2
)
Style fixes, fix usage string.
author
Michael Jumper <zhangmaike@users.sourceforge.net>
Fri, 25 May 2012 06:44:50 +0000
(23:44 -0700)
committer
Michael Jumper <zhangmaike@users.sourceforge.net>
Fri, 25 May 2012 06:44:50 +0000
(23:44 -0700)
src/daemon.c
patch
|
blob
|
history
diff --git
a/src/daemon.c
b/src/daemon.c
index
018f624
..
a727dc6
100644
(file)
--- a/
src/daemon.c
+++ b/
src/daemon.c
@@
-20,7
+20,7
@@
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
- * David PHAM-VAN <d.pham-van@ulteo.com> Ulteo SAS - http://www.ulteo.com
+ * David PHAM-VAN <d.pham-van@ulteo.com> Ulteo SAS - http://www.ulteo.com
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
@@
-227,8
+227,8
@@
int main(int argc, char* argv[]) {
fprintf(stderr, "USAGE: %s"
" [-l LISTENPORT]"
" [-b LISTENADDRESS]"
fprintf(stderr, "USAGE: %s"
" [-l LISTENPORT]"
" [-b LISTENADDRESS]"
- " [-f foreground]"
- " [-p PIDFILE]\n", argv[0]);
+ " [-p PIDFILE]",
+ " [-f]\n", argv[0]);
exit(EXIT_FAILURE);
}
exit(EXIT_FAILURE);
}
@@
-302,6
+302,7
@@
int main(int argc, char* argv[]) {
}
if (!foreground) {
}
if (!foreground) {
+
/* Fork into background */
daemon_pid = fork();
/* Fork into background */
daemon_pid = fork();