diff options
author | Nathan Straz <nstraz@redhat.com> | 2013-08-12 11:45:09 -0400 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2013-09-11 17:39:57 -0400 |
commit | 2faad967427b001262712523a7ffbf3e9b28d32a (patch) | |
tree | a3770d78dc451541ac4dc21834689c3406e71813 /qarshd.c | |
parent | 38e9c4f1b856b74d72b62437b36333146ad83ee6 (diff) | |
download | qarsh-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |