Commit Graph

25 Commits (9830851a9da9b60c79304c30e51e756e6e3ff5cf)

Author SHA1 Message Date
Michael Büsch e69e0dd0b2 hotplug2: Only ignore failed includes for missing files
SVN-Revision: 25421
14 years ago
Vasilis Tsiligiannis 1ac5bff825 hotplug2: Make missing include files non fatal
SVN-Revision: 25414
14 years ago
Vasilis Tsiligiannis 34a5f7bcbe hotplug2: Refresh patches
SVN-Revision: 20685
14 years ago
Vasilis Tsiligiannis ddc4230c30 hotplug2: Fix event blocking when there are no available children (#6958, #7030)
SVN-Revision: 20684
14 years ago
Vasilis Tsiligiannis 2cdfbaa86c hotplug2: Always fork rules flagged as slow
SVN-Revision: 20682
14 years ago
Vasilis Tsiligiannis 1516cadf1f hotplug2: Fix forking (#7033)
SVN-Revision: 20681
14 years ago
Vasilis Tsiligiannis 41f375e837 hotplug2: Cancel firmware loading on file openning errors
SVN-Revision: 20680
14 years ago
Vasilis Tsiligiannis d234536a34 hotplug2: Fix sysfs path (#7031)
SVN-Revision: 20679
14 years ago
Gabor Juhos 3b57cccb71 package/hotplug2: refresh patches
SVN-Revision: 20462
14 years ago
Felix Fietkau 679cab88fe 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>

SVN-Revision: 18725
15 years ago
Felix Fietkau 73723393f9 hotplug2: get rid of the unnecessary reference to libdl as well
SVN-Revision: 18106
15 years ago
Felix Fietkau ebb1151032 hotplug2: compile in the worker module statically, saves >20k uncompressed
SVN-Revision: 18104
15 years ago
Felix Fietkau 47ba8235cd hotplug2: fix "MALLOC FAILURE!" message caused by a missing return code check on recv()
SVN-Revision: 18061
15 years ago
Hamish Guthrie 5513f6a9e9 Move hotplug2 v0.9 to hotplug2-old
SVN-Revision: 16135
15 years ago
John Crispin 863afccae8 remove warning from hotplug2, which pops up 10 times during boot
SVN-Revision: 12086
16 years ago
Felix Fietkau c5ecc1790a 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

SVN-Revision: 12019
16 years ago
Felix Fietkau fd5595ed5c fix two small bugs in the hotplug2 rule parser (#2085)
SVN-Revision: 8023
17 years ago
Felix Fietkau 0e387805fb hotplug2 update - include hotplug2-init.rules from hotplug2.rules, fix permissions of various devices (fixes #2052)
SVN-Revision: 7892
17 years ago
Felix Fietkau c09dc20f2c replace the hotplug2 fork handling hack with a better solution implemented in upstream (thanks, iSteve)
SVN-Revision: 7786
17 years ago
Felix Fietkau 13f087cd5a hotplug2: add fork handling optimization (also fixes that pesky pppoe race condition in #1655)
SVN-Revision: 7726
17 years ago
Felix Fietkau 05c0ca34a7 update to hotplug2 svn version (recommended by iSteve)
SVN-Revision: 7725
17 years ago
Felix Fietkau a99b79e9ad hotplug2: add a missing cflag, allow hotplug events that are not 'add'
SVN-Revision: 7721
17 years ago
Felix Fietkau d309c4fa30 make hotplug2 use the build system cflags
SVN-Revision: 7720
17 years ago
Felix Fietkau 9114220553 refresh all package patches in the buildroot using quilt
SVN-Revision: 7490
17 years ago
Felix Fietkau ca7a815602 use hotplug2 for serializing hotplug events on 2.6
SVN-Revision: 7097
17 years ago