summaryrefslogtreecommitdiff
path: root/lib/run_part.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/run_part.c')
-rw-r--r--lib/run_part.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/run_part.c b/lib/run_part.c
index 03d1d675..1ce06be0 100644
--- a/lib/run_part.c
+++ b/lib/run_part.c
@@ -8,6 +8,7 @@
#include <sys/wait.h>
#include <unistd.h>
#include <lib/prototypes.h>
+#include "shadowlog_internal.h"
int run_part (char *script_path, char *name, char *action)
{
@@ -17,7 +18,7 @@ int run_part (char *script_path, char *name, char *action)
char *args[] = { script_path, NULL };
pid=fork();
- if (pid==-1){
+ if (pid==-1) {
perror ("Could not fork");
return 1;
}