projects
/
nbd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d2278ba
)
r267: Really fix the segfault. Hand the brown paper bag, please
author
yoe <yoe>
Thu, 19 Jul 2007 09:05:18 +0000
(09:05 +0000)
committer
yoe <yoe>
Thu, 19 Jul 2007 09:05:18 +0000
(09:05 +0000)
nbd-server.c
patch
|
blob
|
history
diff --git
a/nbd-server.c
b/nbd-server.c
index
e6ff422
..
a7f759f
100644
(file)
--- a/
nbd-server.c
+++ b/
nbd-server.c
@@
-1323,7
+1323,7
@@
void destroy_pid_t(gpointer data) {
void daemonize(SERVER* serve) {
FILE*pidf;
- if(!(serve->port)) {
+ if(serve && !(serve->port)) {
return;
}
if(daemon(0,0)<0) {