mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-24 22:09:24 +00:00
don't write \n after teh pid in the pid file
This commit is contained in:
parent
c72772e621
commit
b0e0dd81eb
@ -151,7 +151,7 @@ public class Bootstrap {
|
|||||||
FileSystemUtils.mkdirs(fPidFile.getParentFile());
|
FileSystemUtils.mkdirs(fPidFile.getParentFile());
|
||||||
}
|
}
|
||||||
RandomAccessFile rafPidFile = new RandomAccessFile(fPidFile, "rw");
|
RandomAccessFile rafPidFile = new RandomAccessFile(fPidFile, "rw");
|
||||||
rafPidFile.writeBytes(Long.toString(JvmInfo.jvmInfo().pid()) + "\n");
|
rafPidFile.writeBytes(Long.toString(JvmInfo.jvmInfo().pid()));
|
||||||
rafPidFile.close();
|
rafPidFile.close();
|
||||||
|
|
||||||
fPidFile.deleteOnExit();
|
fPidFile.deleteOnExit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user