summaryrefslogtreecommitdiffstats
path: root/package/hotplug2/patches/110-static_worker.patch
Commit message (Collapse)AuthorAgeFilesLines
* package/hotplug2: refresh patchesGabor Juhos2010-03-261-7/+5
| | | | SVN-Revision: 20462
* Fix a memory leak in hotplug2 environment handling. Bump hotplug2 to the ↵Felix Fietkau2009-12-091-158/+16
| | | | | | | | | | | | | | | | | | | | | | | 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
* hotplug2: get rid of the unnecessary reference to libdl as wellFelix Fietkau2009-10-201-6/+7
| | | | SVN-Revision: 18106
* hotplug2: compile in the worker module statically, saves >20k uncompressedFelix Fietkau2009-10-201-0/+163
SVN-Revision: 18104