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
1 changed files with 1 additions and 1 deletions

View File

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