summaryrefslogtreecommitdiffstats
path: root/qarshd.c
diff options
context:
space:
mode:
authorNathan Straz <nstraz@redhat.com>2013-08-12 11:45:09 -0400
committerNathan Straz <nstraz@redhat.com>2013-09-11 17:39:57 -0400
commit2faad967427b001262712523a7ffbf3e9b28d32a (patch)
treea3770d78dc451541ac4dc21834689c3406e71813 /qarshd.c
parent38e9c4f1b856b74d72b62437b36333146ad83ee6 (diff)
downloadqarsh-2faad967427b001262712523a7ffbf3e9b28d32a.tar.gz
qarsh-2faad967427b001262712523a7ffbf3e9b28d32a.tar.xz
qarsh-2faad967427b001262712523a7ffbf3e9b28d32a.zip
Send all server side error messages to stderr
This should get sent to the journal or syslog
Diffstat (limited to 'qarshd.c')
-rw-r--r--qarshd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qarshd.c b/qarshd.c
index 380a9a3..440c3ec 100644
--- a/qarshd.c
+++ b/qarshd.c
@@ -120,7 +120,7 @@ run_cmd(const char *cmd, int p_in, int p_out, int p_err)
dup2(new_err, fileno(stderr));
execlp("sh", "sh", "-c", cmd, NULL);
- printf("exec of %s failed: %d, %s\n", cmd, errno, strerror(errno));
+ fprintf(stderr, "exec of %s failed: %d, %s\n", cmd, errno, strerror(errno));
exit(127);
}
return pid;