Commit Graph

25 Commits (eecefb6e0cfb8b71fa3c1f35b6d1f12510fd4277)

Author SHA1 Message Date
Michael Büsch 8c9cc0b566 hotplug2: Only ignore failed includes for missing files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25421 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-08 17:23:37 +00:00
Vasilis Tsiligiannis c587116c29 [package] hotplug2: Make missing include files non fatal
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25414 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-07 22:28:04 +00:00
Vasilis Tsiligiannis 97f8380385 [package] hotplug2: Refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20685 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-03 18:29:37 +00:00
Vasilis Tsiligiannis d03a4c5d8c [package] hotplug2: Fix event blocking when there are no available children (#6958, #7030)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20684 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-03 18:29:32 +00:00
Vasilis Tsiligiannis b6a5e28a76 [package] hotplug2: Always fork rules flagged as slow
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20682 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-03 18:15:42 +00:00
Vasilis Tsiligiannis 5b5b531c57 [package] hotplug2: Fix forking (#7033)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20681 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-03 18:09:14 +00:00
Vasilis Tsiligiannis 77a1b5673c [package] hotplug2: Cancel firmware loading on file openning errors
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20680 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-03 18:09:09 +00:00
Vasilis Tsiligiannis 4b03e12f5c [package] hotplug2: Fix sysfs path (#7031)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20679 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-03 18:09:04 +00:00
Gabor Juhos 6189513013 package/hotplug2: refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20462 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-26 14:28:25 +00:00
Felix Fietkau 2ee3482123 Fix a memory leak in hotplug2 environment handling.
Bump hotplug2 to the latest svn revision, remove obsolete patches.

Memory leak is caused by the way hotplug2 handles environment variables,
using setenv() and unsetenv(). setenv() creates copies of the supplied
strings, but, due to a POSIX blunder, these copies are never destroyed
by unsetenv(), neither in glibc nor uclibc - not until the program
terminates.

Since some events are handled directly in the main process, even when
configured with the "fork" worker, hotplug2 memory usage will keep
growing over time. This can be observed by running "udevtrigger" and
noting the increase in hotplug2 VmRSS after each run.

This patch uses putenv() instead, which leaves storage management to
the caller, so that we can explicitly delete stuff when it's no longer
needed.

Signed-off-by: Aleksandar Radovanovic <biblbroks@sezampro.rs>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18725 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-09 18:50:49 +00:00
Felix Fietkau 3c635449d3 hotplug2: get rid of the unnecessary reference to libdl as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18106 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-20 20:59:40 +00:00
Felix Fietkau 7a230fb6be hotplug2: compile in the worker module statically, saves >20k uncompressed
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18104 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-20 20:49:44 +00:00
Felix Fietkau 15551bacbf hotplug2: fix "MALLOC FAILURE!" message caused by a missing return code check on recv()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18061 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-19 02:39:02 +00:00
Hamish Guthrie 6bb5dc043e [hotplug2] Move hotplug2 v0.9 to hotplug2-old
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16135 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-28 13:20:54 +00:00
John Crispin 8929c4a880 remove warning from hotplug2, which pops up 10 times during boot
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12086 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-04 08:04:16 +00:00
Felix Fietkau 13ab5b86e6 fix hotplug2 event processing deadlock
when bringing up ethernet on ixp4xx, the driver may request
a firmware while hotplug2 waits for the netdev bringup to complete.
change the event processing loop to keep an event backlog to allow
unthrottled events to pass through while throttled events are being waited for


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12019 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-30 19:02:01 +00:00
Felix Fietkau 86b2e4df0e fix two small bugs in the hotplug2 rule parser (#2085)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8023 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-18 07:23:40 +00:00
Felix Fietkau a7e1a7ae99 hotplug2 update - include hotplug2-init.rules from hotplug2.rules, fix permissions of various devices (fixes #2052)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7892 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-09 00:13:47 +00:00
Felix Fietkau b1840ac964 replace the hotplug2 fork handling hack with a better solution implemented in upstream (thanks, iSteve)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7786 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-30 11:05:14 +00:00
Felix Fietkau c16aa532fe hotplug2: add fork handling optimization (also fixes that pesky pppoe race condition in #1655)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7726 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-25 09:47:58 +00:00
Felix Fietkau 923e4ce031 update to hotplug2 svn version (recommended by iSteve)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7725 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-25 09:46:37 +00:00
Felix Fietkau 21e832921c hotplug2: add a missing cflag, allow hotplug events that are not 'add'
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7721 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-25 07:08:35 +00:00
Felix Fietkau f0f5892884 make hotplug2 use the build system cflags
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7720 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-25 06:30:36 +00:00
Felix Fietkau 12a81e859f refresh all package patches in the buildroot using quilt
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7490 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-04 11:25:53 +00:00
Felix Fietkau 4e4050b160 use hotplug2 for serializing hotplug events on 2.6
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7097 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-05 18:33:18 +00:00