nghttpx: Write PID in temporary file then rename
Write PID in temporary file first. Then rename it as the real destination. It will avoid the issue that the external process may read the empty PID file because of race condition.
Showing
Please register or sign in to comment