Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <unistd.h>
- #include <signal.h>
- #include <stdio.h>
- #include <stdlib.h>
- void handler(int signum){
- printf("Wyslano sygnal SIGINT");
- exit(signum);
- }
- int main(){
- signal(SIGINT, handler);
- raise(SIGINT); //ty zamień tę linijkę na kill(getpid(), SIGINT);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement