mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 06:16:40 +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());
|
||||
}
|
||||
RandomAccessFile rafPidFile = new RandomAccessFile(fPidFile, "rw");
|
||||
rafPidFile.writeBytes(Long.toString(JvmInfo.jvmInfo().pid()) + "\n");
|
||||
rafPidFile.writeBytes(Long.toString(JvmInfo.jvmInfo().pid()));
|
||||
rafPidFile.close();
|
||||
|
||||
fPidFile.deleteOnExit();
|
||||
|
Loading…
x
Reference in New Issue
Block a user