diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-11-29 04:47:59 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:00:29 -0700 |
commit | 927bda379205dfccd2fae8f5c54523230e0771a9 (patch) | |
tree | d69e747faf854448d3306e3859f9d2c87a4e7d25 | |
parent | 2af003feb21e79b68b048c212bb898b293b75421 (diff) |
[PATCH] handle /etc/hotplug.d/ only if the event comes from udevd
-rw-r--r-- | udev.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -61,6 +61,10 @@ static int manage_hotplug_event(void) { int fd; int len; + /* false, if we are called directly */ + if (!getenv("MANAGED_EVENT")) + goto exit; + fd = open("/proc/sys/kernel/hotplug", O_RDONLY); if (fd < 0) goto exit; |