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

APEX needs better POSIX signals implementation #73

Open
elbing opened this issue May 9, 2017 · 0 comments
Open

APEX needs better POSIX signals implementation #73

elbing opened this issue May 9, 2017 · 0 comments

Comments

@elbing
Copy link
Member

elbing commented May 9, 2017

First attempt is having jobs working on pdksh and mksh. Now, if the implementation goes through sigsuspend, pause() never is interrupted. And if not, mksh and pdksh will do it through sigprocmask and calling pause after that, so the case is really the same.

Reproducing, as I showed, it's easy: clone apex, build it following wiki, and build mksh cloning its repo at https://github.com/Harvey-OS/mksh, switching to harvey branch and commenting line 891 add_cppflags -DMKSH_NOPROSPECTOFWORK. Then building it:

ARCH=amd64 HARVEY=<your-path-ro -harvey-tree> APEX=<your-path-to-apex-tree> ./Build.sh

And seeing how it falls into an infinite loop due to both cases of uninterrupted pause() if you just do an ls (doesn't suicide).

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

No branches or pull requests

1 participant