Commit Graph

21 Commits (e1079c515a1d2ff08d829e11de6827741d2154f7)

Author SHA1 Message Date
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
2009-12-09 18:50:49 +00:00
Felix Fietkau ebb1151032 hotplug2: compile in the worker module statically, saves >20k uncompressed
SVN-Revision: 18104
2009-10-20 20:49:44 +00:00
Florian Fainelli e8727498cb update hotplug2 to r199, fixes build failures on brcm-2.4
SVN-Revision: 17508
2009-09-03 18:33:52 +00:00
Jo-Philipp Wich 12c997d9ec hotplug2 may need -fPIC
SVN-Revision: 16199
2009-05-29 23:11:29 +00:00
Hamish Guthrie b38b823afb add hotplug2 v1.0
SVN-Revision: 16136
2009-05-28 13:21:58 +00:00
Hamish Guthrie 5513f6a9e9 Move hotplug2 v0.9 to hotplug2-old
SVN-Revision: 16135
2009-05-28 13:20:54 +00:00
Felix Fietkau 34939cad39 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
SVN-Revision: 15242
2009-04-17 14:09:46 +00:00
Gabor Juhos ec34d908c7 hotplug2: add platform hotplugging
SVN-Revision: 14248
2009-01-28 20:01:11 +00:00
Nicolas Thill 8231561bce move hotplug2 & udevtrigger to base section
SVN-Revision: 10910
2008-04-21 22:31:07 +00:00
Felix Fietkau 4db9556f99 bump package versions after updates
SVN-Revision: 8680
2007-09-07 20:41:57 +00:00
Nicolas Thill 34bb4638e7 move package description to a separate definition, remove it when DESCRIPTION=TITLE
SVN-Revision: 8659
2007-09-07 08:34:51 +00:00
Felix Fietkau 0e387805fb hotplug2 update - include hotplug2-init.rules from hotplug2.rules, fix permissions of various devices (fixes #2052)
SVN-Revision: 7892
2007-07-09 00:13:47 +00:00
Felix Fietkau 05c0ca34a7 update to hotplug2 svn version (recommended by iSteve)
SVN-Revision: 7725
2007-06-25 09:46:37 +00:00
Felix Fietkau 8c41e51e92 fix failsafe on broadcom, send netlink events in diag when running linux 2.6
SVN-Revision: 7722
2007-06-25 08:32:25 +00:00
Felix Fietkau a99b79e9ad hotplug2: add a missing cflag, allow hotplug events that are not 'add'
SVN-Revision: 7721
2007-06-25 07:08:35 +00:00
Felix Fietkau d309c4fa30 make hotplug2 use the build system cflags
SVN-Revision: 7720
2007-06-25 06:30:36 +00:00
Felix Fietkau ca7a815602 use hotplug2 for serializing hotplug events on 2.6
SVN-Revision: 7097
2007-05-05 18:33:18 +00:00
Felix Fietkau 24faf55360 add file type autodetection for the unpack command and nuke PKG_CAT:= in lots of places
SVN-Revision: 6582
2007-03-16 20:21:39 +00:00
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
2007-03-16 19:18:55 +00:00
Felix Fietkau 0a056c9743 make hotplug2 depend on udevtrigger
SVN-Revision: 6511
2007-03-04 20:15:32 +00:00
Felix Fietkau 481ad825af add hotplug2
SVN-Revision: 6510
2007-03-04 19:55:47 +00:00