projects
/
nbd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d4c0033
)
Fix compile with -DNOFORK
author
Wouter Verhelst <w@uter.be>
Thu, 22 Jul 2010 13:22:47 +0000
(15:22 +0200)
committer
Wouter Verhelst <w@uter.be>
Thu, 22 Jul 2010 13:22:47 +0000
(15:22 +0200)
nbd-client.c
patch
|
blob
|
history
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