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
ebb1151032
hotplug2: compile in the worker module statically, saves >20k uncompressed
...
SVN-Revision: 18104
15 years ago
Florian Fainelli
e8727498cb
update hotplug2 to r199, fixes build failures on brcm-2.4
...
SVN-Revision: 17508
15 years ago
Jo-Philipp Wich
12c997d9ec
hotplug2 may need -fPIC
...
SVN-Revision: 16199
16 years ago
Hamish Guthrie
b38b823afb
add hotplug2 v1.0
...
SVN-Revision: 16136
16 years ago
Hamish Guthrie
5513f6a9e9
Move hotplug2 v0.9 to hotplug2-old
...
SVN-Revision: 16135
16 years ago
Felix Fietkau
34939cad39
get rid of $Id$ - it has never helped us and it has broken too many patches ;)
...
SVN-Revision: 15242
16 years ago
Gabor Juhos
ec34d908c7
hotplug2: add platform hotplugging
...
SVN-Revision: 14248
16 years ago
Nicolas Thill
8231561bce
move hotplug2 & udevtrigger to base section
...
SVN-Revision: 10910
17 years ago
Felix Fietkau
4db9556f99
bump package versions after updates
...
SVN-Revision: 8680
17 years ago
Nicolas Thill
34bb4638e7
move package description to a separate definition, remove it when DESCRIPTION=TITLE
...
SVN-Revision: 8659
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
18 years ago
Felix Fietkau
05c0ca34a7
update to hotplug2 svn version (recommended by iSteve)
...
SVN-Revision: 7725
18 years ago
Felix Fietkau
8c41e51e92
fix failsafe on broadcom, send netlink events in diag when running linux 2.6
...
SVN-Revision: 7722
18 years ago
Felix Fietkau
a99b79e9ad
hotplug2: add a missing cflag, allow hotplug events that are not 'add'
...
SVN-Revision: 7721
18 years ago
Felix Fietkau
d309c4fa30
make hotplug2 use the build system cflags
...
SVN-Revision: 7720
18 years ago
Felix Fietkau
ca7a815602
use hotplug2 for serializing hotplug events on 2.6
...
SVN-Revision: 7097
18 years ago
Felix Fietkau
24faf55360
add file type autodetection for the unpack command and nuke PKG_CAT:= in lots of places
...
SVN-Revision: 6582
18 years ago
Felix Fietkau
1d307eea87
add a default for PKG_BUILD_DIR and PKG_INSTALL_DIR (will use KERNEL_BUILD_DIR if kernel.mk is included, BUILD_DIR otherwise)
...
SVN-Revision: 6580
18 years ago
Felix Fietkau
0a056c9743
make hotplug2 depend on udevtrigger
...
SVN-Revision: 6511
18 years ago
Felix Fietkau
481ad825af
add hotplug2
...
SVN-Revision: 6510
18 years ago