Use fork() instead of clone() because https://bugzilla.redhat.com/show_bug.cgi?id=906468 is fixed in newer version
diff --git a/honggfuzz.c b/honggfuzz.c
index 0720582..1890b0d 100644
--- a/honggfuzz.c
+++ b/honggfuzz.c
@@ -50,8 +50,8 @@
void sigHandler(int sig)
{
- /* We should not terminate upon SIGALRM or SIGCHLD delivery */
- if (sig == SIGALRM || sig == SIGCHLD) {
+ /* We should not terminate upon SIGALRM delivery */
+ if (sig == SIGALRM) {
return;
}
@@ -112,9 +112,6 @@
if (sigaction(SIGALRM, &sa, NULL) == -1) {
PLOG_F("sigaction(SIGQUIT) failed");
}
- if (sigaction(SIGCHLD, &sa, NULL) == -1) {
- PLOG_F("sigaction(SIGCHLD) failed");
- }
/* Unblock signals which should be handled by the main thread */
sigset_t ss;
sigemptyset(&ss);
@@ -122,7 +119,6 @@
sigaddset(&ss, SIGINT);
sigaddset(&ss, SIGQUIT);
sigaddset(&ss, SIGALRM);
- sigaddset(&ss, SIGCHLD);
if (sigprocmask(SIG_UNBLOCK, &ss, NULL) != 0) {
PLOG_F("pthread_sigmask(SIG_UNBLOCK)");
}