Skip to content

actions: restore stderr for interactive pkg_add prompts#143

Open
mRrvz wants to merge 1 commit intoNetBSDfr:masterfrom
mRrvz:restore_stderr_for_prompts
Open

actions: restore stderr for interactive pkg_add prompts#143
mRrvz wants to merge 1 commit intoNetBSDfr:masterfrom
mRrvz:restore_stderr_for_prompts

Conversation

@mRrvz
Copy link

@mRrvz mRrvz commented Mar 3, 2026

Without verbosity (-V), pkg_add's interactive prompts (e.g., unsigned package confirmation) were invisible because stderr was redirected to the log file. This made installations appear to hang while waiting for user input.

Fix by temporarily restoring original stderr before running pkg_add, then redirecting it back to the log afterward. Ensures prompts are visible on the terminal without affecting logging.

Without verbosity (-V), pkg_add's interactive prompts (e.g., unsigned package
confirmation) were invisible because stderr was redirected to the log file.
This made installations appear to hang while waiting for user input.

Fix by temporarily restoring original stderr before running pkg_add, then
redirecting it back to the log afterward. Ensures prompts are visible on the
terminal without affecting logging.

Signed-off-by: Alexey Romanov <romanov.alexey2000@gmail.com>
@mRrvz mRrvz force-pushed the restore_stderr_for_prompts branch from 9220d07 to bfac703 Compare March 3, 2026 09:12
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