Package: hal
Version: 0.5.7-2
Severity: important
Tags: patch

When hald-runner runs external helpers such as
/usr/share/hal/scripts/hal-system-lcd-set-brightness, it leaks the
stderr pipe it creates. Which means that after a while, further running
of programs will fail.

Attached is a patch that solves the issue.

Cheers

Mike

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)

Versions of packages hal depends on:
ii  adduser                       3.87       Add and remove users and groups
ii  dbus                          0.62-3     simple interprocess messaging syst
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries
ii  libdbus-1-2                   0.62-3     simple interprocess messaging syst
ii  libdbus-glib-1-2              0.62-3     simple interprocess messaging syst
ii  libexpat1                     1.95.8-3.2 XML parsing C library - runtime li
ii  libglib2.0-0                  2.10.3-1   The GLib library of C routines
ii  libhal1                       0.5.7-2.1  Hardware Abstraction Layer - share
ii  libusb-0.1-4                  2:0.1.12-2 userspace USB programming library
ii  lsb-base                      3.1-10     Linux Standard Base 3.1 init scrip
ii  pciutils                      1:2.2.1-2  Linux PCI Utilities
ii  udev                          0.093-1    /dev/ and hotplug management daemo
ii  usbutils                      0.72-4     USB console utilities

hal recommends no packages.

-- no debconf information
--- hal-0.5.7/hald-runner/runner.c.old	2006-06-23 20:21:25.424301250 +0200
+++ hal-0.5.7/hald-runner/runner.c	2006-06-23 20:21:47.641689750 +0200
@@ -163,6 +163,7 @@
 	if (rd->stderr_v >= 0) {
 		/* Need to read stderr */
 		error = get_string_array_from_fd(rd->stderr_v);
+ 		close(rd->stderr_v);
 		rd->stderr_v = -1;
 	}
 	if (rd->msg != NULL)

Reply via email to