chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0e6546c
)
udevd: create static nodes before /dev/null is needed
author
Michal Soltys
<soltys@ziu.info>
Mon, 22 Nov 2010 12:55:20 +0000
(13:55 +0100)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Mon, 22 Nov 2010 12:55:20 +0000
(13:55 +0100)
udev/udevd.c
patch
|
blob
|
history
diff --git
a/udev/udevd.c
b/udev/udevd.c
index 21dde824eedd5baa8413614dc995da57a886a2ea..aa2e3657f0262dd05a892255aebffcd3b66c3dbb 100644
(file)
--- a/
udev/udevd.c
+++ b/
udev/udevd.c
@@
-1098,6
+1098,10
@@
int main(int argc, char *argv[])
chdir("/");
umask(022);
chdir("/");
umask(022);
+ /* create standard links, copy static nodes, create nodes from modules */
+ static_dev_create(udev);
+ static_dev_create_from_modules(udev);
+
/* before opening new files, make sure std{in,out,err} fds are in a sane state */
fd = open("/dev/null", O_RDWR);
if (fd < 0) {
/* before opening new files, make sure std{in,out,err} fds are in a sane state */
fd = open("/dev/null", O_RDWR);
if (fd < 0) {
@@
-1264,8
+1268,6
@@
int main(int argc, char *argv[])
}
info(udev, "set children_max to %u\n", children_max);
}
info(udev, "set children_max to %u\n", children_max);
- static_dev_create(udev);
- static_dev_create_from_modules(udev);
udev_rules_apply_static_dev_perms(rules);
udev_list_init(&event_list);
udev_rules_apply_static_dev_perms(rules);
udev_list_init(&event_list);