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

sa_mask not supported #66

Open
neelabhg opened this issue Dec 19, 2014 · 2 comments
Open

sa_mask not supported #66

neelabhg opened this issue Dec 19, 2014 · 2 comments
Labels

Comments

@neelabhg
Copy link
Member

Reported by @angrave:
Odd non-compliant behavior in the linux-in-the-browser.
The program should ignore CTRL-C while the handler-function is running because sa_mask was filled.

#include <stdio.h> 
#include <unistd.h>
#include <signal.h>
#include <string.h>

void handlerFunction()
{
    write(1,"CTRL-C",6); /* When you see this press CTRL C*/
    while(1) {}
}

int main()
{
    struct sigaction sa;
    memset(&sa, 0 , sizeof(sa));
    sa.sa_handler = handlerFunction;
    sa.sa_flags = SA_RESTART;
    sigfillset(&sa.sa_mask);
    sigaction(SIGALRM, &sa, NULL);
    alarm(1);
    printf("Sleeping..zzzz...\n");
    sleep(2);
    while(1) {}
    return 0;
}
@neelabhg neelabhg added the bug label Dec 19, 2014
@neelabhg
Copy link
Member Author

This issue still remains after updating jor1k (PR #101).

@wchill
Copy link
Contributor

wchill commented Apr 29, 2015

Looks like the bug is in jor1k, so this issue should be filed there also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants