1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-16 14:09:42 +02:00
Commit Graph

4 Commits

Author SHA1 Message Date
juhosg
02a726fb36 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
nbd
09fc3a65d9 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
nbd
de45c75915 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
nbd
183ed59cff 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