diff options
Diffstat (limited to 'src/exec.c')
-rw-r--r-- | src/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |
71 | void | 71 | void |
72 | log_output (int prio, const char *prog, FILE *fp) | 72 | log_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. */ |
85 | enum exec_result | 85 | enum exec_result |
86 | wydawca_exec (int argc, const char **argv, int *retcode) | 86 | wydawca_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; |