This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-daemon.git
The following commit(s) were added to refs/heads/master by this push:
new db36850 Better internal instance variable name
db36850 is described below
commit db3685038963bfefdc2a8ee56256e70f175f8904
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Jan 28 06:54:01 2026 -0500
Better internal instance variable name
---
src/test/java/org/apache/commons/daemon/ProcrunDaemon.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/test/java/org/apache/commons/daemon/ProcrunDaemon.java
b/src/test/java/org/apache/commons/daemon/ProcrunDaemon.java
index 2d21744..e3074be 100644
--- a/src/test/java/org/apache/commons/daemon/ProcrunDaemon.java
+++ b/src/test/java/org/apache/commons/daemon/ProcrunDaemon.java
@@ -164,7 +164,7 @@ class ProcrunDaemon {
}
/* For the jvm mode */
- private static volatile Thread thrd; // start and stop are called from
different threads
+ private static volatile Thread thread; // start and stop are called from
different threads
public static void start(String[] argv) {
try {
@@ -178,16 +178,16 @@ class ProcrunDaemon {
} else {
System.out.println("start no argv");
}
- thrd = new Thread() {
+ thread = new Thread() {
@Override
public void run() {
server();
}
};
- thrd.start();
- while (thrd.isAlive()) {
+ thread.start();
+ while (thread.isAlive()) {
try {
- thrd.join();
+ thread.join();
} catch (InterruptedException ie) {
System.out.println(ie);
}
@@ -211,9 +211,9 @@ class ProcrunDaemon {
System.out.println("stop no argv");
}
/* just stop the thread! */
- if (thrd != null) {
+ if (thread != null) {
System.out.println("stop: interrupt Thread");
- thrd.interrupt();
+ thread.interrupt();
} else {
System.out.println("stop: Oops no Thread");
}