jow
905ec7ee63
[backfire] merge r21422
...
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@21423 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-10 19:34:38 +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
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
florian
9372ff9d8f
[package] update hotplug2 to r199, fixes build failures on brcm-2.4
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17508 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-03 18:33:52 +00:00
jow
281be5d6d1
[package] hotplug2 may need -fPIC
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16199 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-29 23:11:29 +00:00
hcg
fd838e9faf
[hotplug2] add hotplug2 v1.0
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16136 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-28 13:21:58 +00:00
hcg
e78f0c2415
[hotplug2] Move hotplug2 v0.9 to hotplug2-old
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16135 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-28 13:20:54 +00:00
nbd
796a9d1091
get rid of $Id$ - it has never helped us and it has broken too many patches ;)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15242 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-17 14:09:46 +00:00
juhosg
d99855b11e
[package] hotplug2: add platform hotplugging
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14248 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-28 20:01:11 +00:00
nico
f7af5c7e5a
move hotplug2 & udevtrigger to base section
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10910 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-21 22:31:07 +00:00
nbd
235b19acea
bump package versions after updates
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8680 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-07 20:41:57 +00:00
nico
c4b73fa154
move package description to a separate definition, remove it when DESCRIPTION=TITLE
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8659 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-07 08:34:51 +00:00
nbd
af7fc344c8
hotplug2 update - include hotplug2-init.rules from hotplug2.rules, fix permissions of various devices ( fixes #2052 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7892 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-09 00:13:47 +00:00
nbd
024945eed5
update to hotplug2 svn version (recommended by iSteve)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7725 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-25 09:46:37 +00:00
nbd
1d5d64e647
fix failsafe on broadcom, send netlink events in diag when running linux 2.6
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7722 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-25 08:32:25 +00:00
nbd
52242b5f8e
hotplug2: add a missing cflag, allow hotplug events that are not 'add'
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7721 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-25 07:08:35 +00:00
nbd
1b9d91c491
make hotplug2 use the build system cflags
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7720 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-25 06:30:36 +00:00
nbd
2d6b53deec
use hotplug2 for serializing hotplug events on 2.6
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7097 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-05 18:33:18 +00:00
nbd
643f013d15
add file type autodetection for the unpack command and nuke PKG_CAT:= in lots of places
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6582 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-16 20:21:39 +00:00
nbd
1d3cff733d
add a default for PKG_BUILD_DIR and PKG_INSTALL_DIR (will use KERNEL_BUILD_DIR if kernel.mk is included, BUILD_DIR otherwise)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6580 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-16 19:18:55 +00:00
nbd
a4a2f867c8
make hotplug2 depend on udevtrigger
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6511 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-04 20:15:32 +00:00
nbd
2941ad5d2b
add hotplug2
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6510 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-04 19:55:47 +00:00