projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b3c0421
)
fixed small compilation errors (debug mode)
development
author
pk910
<philipp@zoelle1.de>
Sun, 11 Aug 2013 21:46:33 +0000
(23:46 +0200)
committer
pk910
<philipp@zoelle1.de>
Sun, 11 Aug 2013 21:46:33 +0000
(23:46 +0200)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index fb16300da97ac5697e13adfcc59b85811a8468d3..72d3fb7e1952ec51a572fa3dd85b451811a41e22 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-131,10
+131,9
@@
static void main_daemonize() {
fprintf(pidfile, "%i\n", (int)getpid());
fclose(pidfile);
}
fprintf(pidfile, "%i\n", (int)getpid());
fclose(pidfile);
}
- FILE *retn;
- fclose(stdin); retn = fopen("/dev/null", "r");
- fclose(stdout); retn = fopen("/dev/null", "w");
- fclose(stderr); retn = fopen("/dev/null", "w");
+ fclose(stdin); fopen("/dev/null", "r");
+ fclose(stdout); fopen("/dev/null", "w");
+ fclose(stderr); fopen("/dev/null", "w");
#endif
}
#endif
}