User Tools

Site Tools


progsys:index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
progsys:index [2019/11/20 21:54] orelprogsys:index [2024/03/18 15:06] (current) – external edit 127.0.0.1
Line 995: Line 995:
 int main(void) int main(void)
 { {
-    // struct sigaction act; +    signal(SIGINT, handler); // TODO: utiliser sigaction() plutôt que signal() !
-    signal(SIGINT, handler);+
  
     if (fork() == 0)     if (fork() == 0)
Line 1025: Line 1024:
  
 static struct sigaction sa, old; static struct sigaction sa, old;
-static jmp_buf env;+static sigjmp_buf env;
  
 static void myalarm(int sig) static void myalarm(int sig)
progsys/index.1574286848.txt.gz · Last modified: 2024/03/18 15:05 (external edit)