X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Finclude%2Fha-callout.h;h=11643361837af130dff1f14b5bf550908e6784a1;hp=64a430d94ec7e9e1ab9df360f01168fa853240c5;hb=0cdfd35cecc17eb1927f15d33205e43ec66675f2;hpb=b3e11098b1eaf65caae2fa0787e9839ce7d5e818 diff --git a/support/include/ha-callout.h b/support/include/ha-callout.h index 64a430d..1164336 100644 --- a/support/include/ha-callout.h +++ b/support/include/ha-callout.h @@ -37,7 +37,7 @@ ha_callout(char *event, char *arg1, char *arg2, int arg3) * SIGCHLD temporarily */ newact.sa_handler = SIG_DFL; - newacc.sa_flags = 0; + newact.sa_flags = 0; sigemptyset(&newact.sa_mask); sigaction(SIGCHLD, &newact, &oldact); pid = fork(); @@ -53,11 +53,7 @@ ha_callout(char *event, char *arg1, char *arg2, int arg3) default: pid = waitpid(pid, &ret, 0); } sigaction(SIGCHLD, &oldact, &newact); -#ifdef dprintf - dprintf(N_DEBUG, "ha callout returned %d\n", WEXITSTATUS(ret)); -#else xlog(D_GENERAL, "ha callout returned %d\n", WEXITSTATUS(ret)); -#endif } #endif