Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43c58ba
)
htparser: Fixed pidfile-less bug.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 31 Aug 2010 22:14:11 +0000
(
00:14
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 31 Aug 2010 22:14:11 +0000
(
00:14
+0200)
src/htparser.c
patch
|
blob
|
blame
|
history
diff --git
a/src/htparser.c
b/src/htparser.c
index
17ad93a
..
0824902
100644
(file)
--- a/
src/htparser.c
+++ b/
src/htparser.c
@@
-486,9
+486,10
@@
int main(int argc, char **argv)
if(daemonize) {
daemon(0, 0);
}
- if(pidout != NULL)
+ if(pidout != NULL)
{
fprintf(pidout, "%i\n", getpid());
- fclose(pidout);
+ fclose(pidout);
+ }
ioloop();
return(0);
}