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:
ede3444
)
udev: guard REREADP logic with open(O_ECXL)
author
Kay Sievers
<kay@vrfy.org>
Wed, 4 Jun 2014 12:09:31 +0000
(14:09 +0200)
committer
Kay Sievers
<kay@vrfy.org>
Wed, 4 Jun 2014 12:09:31 +0000
(14:09 +0200)
src/udev/udevd.c
patch
|
blob
|
history
diff --git
a/src/udev/udevd.c
b/src/udev/udevd.c
index 763062f21906b1a720c230b0f69ecfdd135c91b0..d79891a7ca207322072be254690905a3e54c9a7b 100644
(file)
--- a/
src/udev/udevd.c
+++ b/
src/udev/udevd.c
@@
-754,7
+754,7
@@
static int synthesize_change(struct udev_device *dev) {
* The kernel will send out a change event for the disk, and
* "remove/add" for all partitions.
*/
- fd = open(udev_device_get_devnode(dev), O_RDONLY|O_CLOEXEC|O_NOFOLLOW|O_NONBLOCK);
+ fd = open(udev_device_get_devnode(dev), O_RDONLY|O_
EXCL|O_
CLOEXEC|O_NOFOLLOW|O_NONBLOCK);
if (fd >= 0) {
r = ioctl(fd, BLKRRPART, 0);
close(fd);