Skip to content

Gate POSIX-only signals and resource module to only run on POSIX Pyth… #576

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

Merged
merged 1 commit into from
Aug 15, 2018

Conversation

cr1901
Copy link
Contributor

@cr1901 cr1901 commented Jul 6, 2018

…on implementations.

The resource module exposes an interface to the POSIX-compliant get/setrlimit() functions which allow a user to set resource usage of an application. Unfortunately, this functionality isn't exposed on Windows, even on MinGW; the module doesn't exist.

This isn't great, but seeing as I need the SMT backend and I'm on a Windows machine, my current solution is to just gate out the POSIX-only functionality for now. Since this is potentially limiting on larger problems, when I have more time, I'll look into alternate solutions.

Similarly, SIGHUP isn't exposed as a signal in the signal module as well (nor does it make sense on Windows), so I gated this as well. I tested SIGINT and it works fine; AFAICT, it's impossible to send SIGTERM, but the identifier exists within signal, so I left it alone.

@cliffordwolf cliffordwolf merged commit dfc0c8f into YosysHQ:master Aug 15, 2018
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