don't write \n after teh pid in the pid file

This commit is contained in:
Shay Banon 2012-02-27 10:58:49 +02:00
parent c72772e621
commit b0e0dd81eb

View File

@ -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();