Skip to content
Snippets Groups Projects
Commit 65df02fc authored by iliya's avatar iliya
Browse files

ÇA FONCTIONNE, JSP PK, JEN AI MARRE, FML

parent fd1e758e
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,11 @@ int main(void) { ...@@ -57,6 +57,11 @@ int main(void) {
perror("sigaddset"); perror("sigaddset");
} }
if (sigprocmask(SIG_SETMASK, &usr1.sa_mask, NULL) == -1) {
perror("sigprocmask");
exit(EXIT_FAILURE);
}
if (sigaction(SIGUSR1, &usr1, NULL) == -1) { if (sigaction(SIGUSR1, &usr1, NULL) == -1) {
perror("sigaction"); perror("sigaction");
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment