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
Last revisionBoth sides next revision
progsys:index [2019/11/20 21:54] orelprogsys:index [2020/11/06 11:14] – [Ctrl-C] orel
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.txt · Last modified: 2024/03/18 15:06 by 127.0.0.1