Skip to content

Commit

Permalink
Shorter version
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerkaraszewski committed Jun 5, 2024
1 parent 08cc5b1 commit 881b650
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,9 @@ int main(int argc, char* argv[]) {
SINFO("Graceful process shutdown complete");

// Save that we're shutting down.
pid_t pid = getpid();
ofstream file("/var/log/bedrock_shutdown", std::ios::app);
if (file) {
file << "shutdown " << pid << " " << SComposeTime("%Y-%m-%dT%H:%M:%S", STimeNow()) << endl;
file << "shutdown " << getpid() << " " << SComposeTime("%Y-%m-%dT%H:%M:%S", STimeNow()) << endl;
file.close();
}

Expand Down

0 comments on commit 881b650

Please sign in to comment.