projects
/
nbd.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix compile with -DNOFORK
[nbd.git]
/
nbd-client.c
diff --git
a/nbd-client.c
b/nbd-client.c
index
97c8048
..
7aceb3e
100644
(file)
--- a/
nbd-client.c
+++ b/
nbd-client.c
@@
-343,7
+343,9
@@
int main(int argc, char *argv[]) {
#ifndef NOFORK
if(!nofork) daemon(0,0);
+#endif
do {
+#ifndef NOFORK
if (fork()) {
/* Due to a race, the kernel NBD driver cannot
* call for a reread of the partition table