aboutsummaryrefslogtreecommitdiff
path: root/src/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exec.c')
-rw-r--r--src/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exec.c b/src/exec.c
index ed7ee1e..7ebf152 100644
--- a/src/exec.c
+++ b/src/exec.c
@@ -66,25 +66,25 @@ start_prog (int argc, const char **argv, pid_t *ppid)
66 return fp; 66 return fp;
67} 67}
68 68
69/* Log everything read from FP as the output from the program PROG, using 69/* Log everything read from FP as the output from the program PROG, using
70 syslog priority PRIO. */ 70 syslog priority PRIO. */
71void 71void
72log_output (int prio, const char *prog, FILE *fp) 72log_output (int prio, const char *prog, FILE *fp)
73{ 73{
74 size_t size = 0; 74 size_t size = 0;
75 char *buf = NULL; 75 char *buf = NULL;
76 76
77 logmsg (prio, _("%s output follows:"), prog); 77 logmsg (prio, _("%s output follows:"), prog);
78 while (getline (&buf, &size, fp) > 0) 78 while (grecs_getline (&buf, &size, fp) > 0)
79 logmsg (prio, "%s", buf); 79 logmsg (prio, "%s", buf);
80 logmsg (prio, _("end of %s output"), prog); 80 logmsg (prio, _("end of %s output"), prog);
81 free (buf); 81 free (buf);
82} 82}
83 83
84/* Execute ARGC/ARGV. Return the exit code in RETCODE. */ 84/* Execute ARGC/ARGV. Return the exit code in RETCODE. */
85enum exec_result 85enum exec_result
86wydawca_exec (int argc, const char **argv, int *retcode) 86wydawca_exec (int argc, const char **argv, int *retcode)
87{ 87{
88 FILE *fp; 88 FILE *fp;
89 pid_t pid, npid; 89 pid_t pid, npid;
90 int status; 90 int status;

Return to:

Send suggestions and report system problems to the System administrator.