Bug#674975: librxtx-java: created Java threads are not marked as daemon

Christopher Wellons mosquitopsu at gmail.com
Tue May 29 02:42:56 UTC 2012


Package: librxtx-java
Version: 2.2pre2-10
Severity: normal
Tags: patch

Dear Maintainer,

Threads created in Java by RXTX are not marked as daemon. They hold
the JVM open so that it can't shut down gracefully, as it normally
does when all non-daemon threads have completed. So Java applications
using RXTX can only exit by a System.exit(0).

The threads are an implementation detail, invisible to users of the
library, so users shouldn't be relying on these threads being
non-dameon.

The attached patch makes all RXTX threads daemon threads. I've been
using this patch successfully for 6 months now. I intended to submit
this to upstream, but it seems to be dead right now.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages librxtx-java depends on:
ii  libc6  2.13-32

librxtx-java recommends no packages.

librxtx-java suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MonitorThread-daemon.patch
Type: text/x-diff
Size: 1327 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20120528/257e5023/attachment.patch>


More information about the pkg-java-maintainers mailing list