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 @@ | |||
1 | Description: Threads created in Java by RXTX are not marked as daemon. | ||
2 | Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674975 | ||
3 | Author: Christopher Wellons <mosquitopsu@gmail.com> | ||
4 | Upstream-Status: Pending | ||
5 | --- a/src/gnu/io/I2C.java | ||
6 | +++ b/src/gnu/io/I2C.java | ||
7 | @@ -468,7 +468,9 @@ | ||
8 | private boolean BI=false; | ||
9 | private boolean Data=false; | ||
10 | private boolean Output=false; | ||
11 | - MonitorThread() { } | ||
12 | + MonitorThread() { | ||
13 | + setDaemon(true); | ||
14 | + } | ||
15 | public void run() { | ||
16 | eventLoop(); | ||
17 | } | ||
18 | --- a/src/gnu/io/LPRPort.java | ||
19 | +++ b/src/gnu/io/LPRPort.java | ||
20 | @@ -366,7 +366,9 @@ | ||
21 | { | ||
22 | private boolean monError = false; | ||
23 | private boolean monBuffer = false; | ||
24 | - MonitorThread() { } | ||
25 | + MonitorThread() { | ||
26 | + setDaemon(true); | ||
27 | + } | ||
28 | public void run() | ||
29 | { | ||
30 | eventLoop(); | ||
31 | --- a/src/gnu/io/RS485.java | ||
32 | +++ b/src/gnu/io/RS485.java | ||
33 | @@ -465,7 +465,9 @@ | ||
34 | private boolean BI=false; | ||
35 | private boolean Data=false; | ||
36 | private boolean Output=false; | ||
37 | - MonitorThread() { } | ||
38 | + MonitorThread() { | ||
39 | + setDaemon(true); | ||
40 | + } | ||
41 | public void run() { | ||
42 | eventLoop(); | ||
43 | } | ||
44 | --- a/src/gnu/io/RXTXPort.java | ||
45 | +++ b/src/gnu/io/RXTXPort.java | ||
46 | @@ -1629,6 +1629,7 @@ | ||
47 | |||
48 | MonitorThread() | ||
49 | { | ||
50 | + setDaemon(true); | ||
51 | if (debug) | ||
52 | z.reportln( "RXTXPort:MontitorThread:MonitorThread()"); | ||
53 | } | ||
54 | --- a/src/gnu/io/Raw.java | ||
55 | +++ b/src/gnu/io/Raw.java | ||
56 | @@ -466,7 +466,9 @@ | ||
57 | private boolean BI=false; | ||
58 | private boolean Data=false; | ||
59 | private boolean Output=false; | ||
60 | - MonitorThread() { } | ||
61 | + MonitorThread() { | ||
62 | + setDaemon(true); | ||
63 | + } | ||
64 | public void run() { | ||
65 | eventLoop(); | ||
66 | } | ||