Skip to content

Conversation

@paulmer
Copy link

@paulmer paulmer commented Dec 3, 2024

Cronolog has forever returned a status code of 3 when it encounters an EOF on stdin; however, EOF is a normal condition when the upstream process closes its log file or exits and should not be treated as abnormal by cronolog. A non-zero status impairs the use of cronolog in pipes by making it impossible to determine if the pipeline was successful. This pull request changes the exit code to 0 when EOF is encountered.

Replaced non-zero exit code with zero exit code when EOF
is read from stdin.  EOF occurs when the server process closes
its log file, and should not be an error condition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant