chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] wait() for specific pid to return from fork().
[elogind.git]
/
udevsend.c
diff --git
a/udevsend.c
b/udevsend.c
index 84c46bc0c286b3c117123d77c4ba27a6c702482c..b564d6453fce3020af181f8dccd600fa26147405 100644
(file)
--- a/
udevsend.c
+++ b/
udevsend.c
@@
-82,7
+82,7
@@
static int start_daemon(void)
dbg("fork of helper failed");
return -1;
default:
- wait
(NULL
);
+ wait
pid(pid, NULL, 0
);
}
return 0;
}
@@
-103,7
+103,7
@@
static void run_udev(const char *subsystem)
dbg("fork of child failed");
break;
default:
- wait
(NULL
);
+ wait
pid(pid, NULL, 0
);
}
}