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

SAW should respond to SIGINFO #2143

Open
sauclovian-g opened this issue Nov 5, 2024 · 1 comment
Open

SAW should respond to SIGINFO #2143

sauclovian-g opened this issue Nov 5, 2024 · 1 comment
Labels
topics: error-messages Issues involving the messages SAW produces on error type: feature request Issues requesting a new feature or capability
Milestone

Comments

@sauclovian-g
Copy link
Collaborator

There's a little-known/little-used feature of Unix ttys where typing ^T sends SIGINFO to the foreground process, which is a request for it to tell you what it's doing.

It's helpful for terminal-based things that can be long-running to respond by printing what they're doing; this is often sufficient to decide whether they're making progress or not and whether to kill them.

It may be difficult to implement this usefully for SAW because of the complicated and messy rules about what you can do in a signal handler, but if it's reasonably feasible it would be nice to have.

@sauclovian-g
Copy link
Collaborator Author

For example one could print the interpreter's execution context (function and stack trace), plus for some of the internal operations what stage it's in, plus if we're waiting for an external process (like a solver) what process it is and how long since it was started.

@sauclovian-g sauclovian-g added topics: error-messages Issues involving the messages SAW produces on error type: feature request Issues requesting a new feature or capability labels Nov 5, 2024
@sauclovian-g sauclovian-g added this to the Someday milestone Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topics: error-messages Issues involving the messages SAW produces on error type: feature request Issues requesting a new feature or capability
Projects
None yet
Development

No branches or pull requests

1 participant