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

Improve input preprocessor failure diagnostics #328

Merged
merged 1 commit into from
Jan 28, 2023

Conversation

eggert
Copy link
Contributor

@eggert eggert commented Jan 28, 2023

This fixes gwsw/less issue #327.

  • configure.ac: Check for sys/wait.h and for strsignal.
  • edit.c: Include <sys/wait.h> if available.
    (close_pipe): Always diagnose internal error with pclose. On POSIX-compatible systems, generate better diagnostics that distinguish between ordinary exit and signals, and do not diagnose SIGPIPE after the user types 'q' as that is normal and expected.
  • os.c (signal_message): New function.

This fixes gwsw/less issue gwsw#327.
* configure.ac: Check for sys/wait.h and for strsignal.
* edit.c: Include <sys/wait.h> if available.
(close_pipe): Always diagnose internal error with pclose.
On POSIX-compatible systems, generate better diagnostics
that distinguish between ordinary exit and signals,
and do not diagnose SIGPIPE after the user types 'q'
as that is normal and expected.
* os.c (signal_message): New function.
@gwsw gwsw merged commit ccf09b6 into gwsw:master Jan 28, 2023
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.

None yet

2 participants