Partially revert fc07b6e1b93086ca2a1600b8891069b28db1b534.

It seems this commit was added to ensure the actual parent (i.e. the process
that called clone) is notified on process death. Apparently this isn't correct
behavior as the man page for clone(2) states:

    A new thread created with CLONE_THREAD has the same parent process as the
    caller of clone() (i.e., like CLONE_PARENT), so that calls to getppid(2)
    return the same  value  for all of the threads in a thread group.  When a
    CLONE_THREAD thread terminates, the thread that created it using clone() is
    not sent a SIGCHLD (or other termination) signal; nor can the status of
    such a thread be obtained using wait(2).  (The thread is said to be
    detached.)

Since notify_parent is only set when flags&(CLONE_PARENT|CLONE_THREAD), we
do not need to send SIGCHLD to the actual_parent in any event.

This problem caused the issue #419 reported by Michi. waitpid(2) returned a
thread id when it should report an error ECHILD.

Fixes #419.
wait(2) cannot return detached threads.

Fix by @michi42.
Correct waitpid behavior with threads.

* ccl/pull/420/head:
  wait(2) cannot return detached threads.
  Partially revert fc07b6e1b93086ca2a1600b8891069b28db1b534.
Temporary fix, add link.h to PUBLIC_HEADERS to compile chirp apps
Merge pull request #422 from btovar/add_link_to_public

Temporary fix, add link.h to PUBLIC_HEADERS to compile chirp apps
wq_graph print line number of invalid values
Merge pull request #423 from btovar/wq_graph_better_error_check

wq_graph print line number of invalid values