aboutsummaryrefslogtreecommitdiffstats
path: root/package/hotplug2/patches
Commit message (Collapse)AuthorAgeFilesLines
* Fix a memory leak in hotplug2 environment handling.Felix Fietkau2009-12-093-170/+80
| | | | | | | | | | | | | | | | | | | | | | | 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
* hotplug2: get rid of the unnecessary reference to libdl as wellFelix Fietkau2009-10-201-6/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18106 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hotplug2: compile in the worker module statically, saves >20k uncompressedFelix Fietkau2009-10-201-0/+163
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18104 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hotplug2: fix "MALLOC FAILURE!" message caused by a missing return code ↵Felix Fietkau2009-10-191-0/+12
| | | | | | check on recv() git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18061 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [hotplug2] Move hotplug2 v0.9 to hotplug2-oldHamish Guthrie2009-05-283-2424/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16135 3c298f89-4303-0410-b956-a3cf2f4a3e73
* remove warning from hotplug2, which pops up 10 times during bootJohn Crispin2008-08-041-7/+10
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12086 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix hotplug2 event processing deadlockFelix Fietkau2008-07-301-0/+135
| | | | | | | | | | 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
* fix two small bugs in the hotplug2 rule parser (#2085)Felix Fietkau2007-07-181-0/+22
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8023 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hotplug2 update - include hotplug2-init.rules from hotplug2.rules, fix ↵Felix Fietkau2007-07-091-74/+1600
| | | | | | permissions of various devices (fixes #2052) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7892 3c298f89-4303-0410-b956-a3cf2f4a3e73
* replace the hotplug2 fork handling hack with a better solution implemented ↵Felix Fietkau2007-06-303-198/+239
| | | | | | in upstream (thanks, iSteve) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7786 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hotplug2: add fork handling optimization (also fixes that pesky pppoe race ↵Felix Fietkau2007-06-251-0/+142
| | | | | | condition in #1655) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7726 3c298f89-4303-0410-b956-a3cf2f4a3e73
* update to hotplug2 svn version (recommended by iSteve)Felix Fietkau2007-06-253-48/+542
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7725 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hotplug2: add a missing cflag, allow hotplug events that are not 'add'Felix Fietkau2007-06-251-0/+13
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7721 3c298f89-4303-0410-b956-a3cf2f4a3e73
* make hotplug2 use the build system cflagsFelix Fietkau2007-06-251-0/+13
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7720 3c298f89-4303-0410-b956-a3cf2f4a3e73
* refresh all package patches in the buildroot using quiltFelix Fietkau2007-06-041-3/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7490 3c298f89-4303-0410-b956-a3cf2f4a3e73
* use hotplug2 for serializing hotplug events on 2.6Felix Fietkau2007-05-051-0/+34
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7097 3c298f89-4303-0410-b956-a3cf2f4a3e73