wait() does not return after child received sigstop
<p>Just as the title says, one process forks waits for its child to receive a SIGSTOP (self sent by the child) but it does not wake up after as if it didn't receive any SIGCHLD (but it actually did, tested with strace).</p>

<p>Anyone any ideas?</p>

<pre><code>int main() {
  if (fork()) {
    wait(NULL);
    write(1, "Bye\n", 4);
  } else {
    kill(getpid(), SIGSTOP);
    write(1, "Hello\n", 6);
  }
return 0;
}
</code></pre>

<p>They both hang, whereas only the child should.</p>