diff options
Diffstat (limited to 'recipes-extended/rxtx/files/MonitorThread-daemon.patch')
-rw-r--r-- | recipes-extended/rxtx/files/MonitorThread-daemon.patch | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/recipes-extended/rxtx/files/MonitorThread-daemon.patch b/recipes-extended/rxtx/files/MonitorThread-daemon.patch new file mode 100644 index 0000000..8e7951a --- /dev/null +++ b/recipes-extended/rxtx/files/MonitorThread-daemon.patch @@ -0,0 +1,66 @@ +Description: Threads created in Java by RXTX are not marked as daemon. +Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674975 +Author: Christopher Wellons <mosquitopsu@gmail.com> +Upstream-Status: Pending +--- a/src/gnu/io/I2C.java ++++ b/src/gnu/io/I2C.java +@@ -468,7 +468,9 @@ + private boolean BI=false; + private boolean Data=false; + private boolean Output=false; +- MonitorThread() { } ++ MonitorThread() { ++ setDaemon(true); ++ } + public void run() { + eventLoop(); + } +--- a/src/gnu/io/LPRPort.java ++++ b/src/gnu/io/LPRPort.java +@@ -366,7 +366,9 @@ + { + private boolean monError = false; + private boolean monBuffer = false; +- MonitorThread() { } ++ MonitorThread() { ++ setDaemon(true); ++ } + public void run() + { + eventLoop(); +--- a/src/gnu/io/RS485.java ++++ b/src/gnu/io/RS485.java +@@ -465,7 +465,9 @@ + private boolean BI=false; + private boolean Data=false; + private boolean Output=false; +- MonitorThread() { } ++ MonitorThread() { ++ setDaemon(true); ++ } + public void run() { + eventLoop(); + } +--- a/src/gnu/io/RXTXPort.java ++++ b/src/gnu/io/RXTXPort.java +@@ -1629,6 +1629,7 @@ + + MonitorThread() + { ++ setDaemon(true); + if (debug) + z.reportln( "RXTXPort:MontitorThread:MonitorThread()"); + } +--- a/src/gnu/io/Raw.java ++++ b/src/gnu/io/Raw.java +@@ -466,7 +466,9 @@ + private boolean BI=false; + private boolean Data=false; + private boolean Output=false; +- MonitorThread() { } ++ MonitorThread() { ++ setDaemon(true); ++ } + public void run() { + eventLoop(); + } |