Skip to content

Commit

Permalink
main: Get rid a warning about unused results
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Jan 23, 2024
1 parent e85dcd5 commit f6aa963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poseidon/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ do_write_pid_file()
// Write the PID of myself. Errors are ignored.
POSEIDON_LOG_DEBUG(("Writing current process ID to '$1'"), pid_file_path.c_str());
::dprintf(pid_file_fd, "%d\n", (int) ::getpid());
::at_quick_exit([] { ::ftruncate(pid_file_fd, 0); });
::at_quick_exit([] { (void)! ::ftruncate(pid_file_fd, 0); });

// Downgrade the lock so the PID may be read by others.
::flock(pid_file_fd, LOCK_SH);
Expand Down

0 comments on commit f6aa963

Please sign in to comment.