Hi, I'm trying to synchronize two processes but I get a deadlock that I can't manage to solve. To be more specific, my program has to do the following: 1. Parent creates a process and waits using sigsuspend. 2. Child creates a process. 3. Grandchild performs an execvp and gets some information using snmp and sends this information to child using a pipe. 4. Child gets grandchild's output and parses the useful information, placing it in a shared memory space with parent. 5. Child signals parent to wake up. Child repeats from 2. 6. When parent wakes up, writes the …

Member Avatar
Member Avatar
+0 forum 2

The End.