[PATCH v2 2/8] tools/nolibc: add helpers for wait() signal exits