Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug: FE pid file has wrong content(#1273)
For example, we start the process for the first time. The pid is 12345. Due to the accident, the process is killed and the fe.pid exists. Then we start the process for the second time. The pid is 6789. The fe.pid shows 67895 , Because file.write only cover the first four digits. This case can happen easily when we use supervise. Then I add the file.setLength(0) and delete the old data.
- Loading branch information