projects
/
project
/
mountd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cmake: Find uci.h
[project/mountd.git]
/
main.c
diff --git
a/main.c
b/main.c
index
2c08bde
..
815d58e
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-1,4
+1,5
@@
#include <stdio.h>
#include <stdio.h>
+#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
@@
-13,7
+14,9
@@
int daemonize = 0;
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
- daemon(0,0);
+ if ((argc < 2) || strcmp(argv[1], "-f"))
+ daemon(0,0);
+
daemonize = 1;
log_start();
log_printf("Starting OpenWrt (auto)mountd V1\n");
daemonize = 1;
log_start();
log_printf("Starting OpenWrt (auto)mountd V1\n");