Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flush stdout and stderr before exiting #49

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

satazor
Copy link
Contributor

@satazor satazor commented Dec 20, 2024

If we do:

processManager.once(() => {
  console.log('Very long line...........................');
});

and the process stdout is in non blocking mode , the line gets truncated. This happens because process manager calls process.exit() before waiting for stdout to flush

@satazor satazor force-pushed the bugfix/ensure-stdout-stderr-flush branch from 5ec6e27 to afcb693 Compare December 20, 2024 13:45
@satazor satazor changed the title Bugfix/ensure stdout stderr flush Flush stdout and stderr before exiting Dec 20, 2024
@satazor satazor force-pushed the bugfix/ensure-stdout-stderr-flush branch from afcb693 to 03f25d1 Compare December 20, 2024 13:58
@fixe fixe merged commit 6d5777b into master Dec 20, 2024
3 checks passed
@fixe fixe deleted the bugfix/ensure-stdout-stderr-flush branch December 20, 2024 14:40
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.

2 participants