I'm trying to make the process to wait for a signal from his son. It seems to not be working. I'm not into C this much so my code can be horrible. Here's the code:

Parents code: 

```
sigemptyset (&mask);
sigaddset (&mask, SIGUSR1);
sigprocmask (SIG_SETMASK, &mask, NULL); 
sigwaitinfo(&mask, &info);
sigprocmask (SIG_UNBLOCK, &mask, NULL);

```

Children code:

```
kill(getppid(), SIGUSR1);

```