summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDean Jansa <djansa@redhat.com>2005-09-01 21:26:17 +0000
committerDean Jansa <djansa@redhat.com>2005-09-01 21:26:17 +0000
commitb652a2eb1e2f40c69e454199810123d3e96ae01f (patch)
tree46a374f471c6ae1c08221a008330afe0c47b84bc
parentb3c4810fcd272e113797f6e2119b8102f53b8d58 (diff)
downloadqarsh-b652a2eb1e2f40c69e454199810123d3e96ae01f.tar.gz
qarsh-b652a2eb1e2f40c69e454199810123d3e96ae01f.tar.xz
qarsh-b652a2eb1e2f40c69e454199810123d3e96ae01f.zip
Pull out old debug output.
Fix the syslog of the QP_GETFILE to a QP_RECVFILE Fix typeo in the returncode packet in QP_RECVFILE
-rw-r--r--qarsh/qarshd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/qarsh/qarshd.c b/qarsh/qarshd.c
index 70ed09d..1427089 100644
--- a/qarsh/qarshd.c
+++ b/qarsh/qarshd.c
@@ -159,7 +159,6 @@ handle_packets(int infd)
pid_t child_pid = 0;
int child_status;
ssize_t nbytes;
- int i=0;
sigemptyset(&sigmask);
sigaddset(&sigmask, SIGCHLD);
@@ -173,7 +172,6 @@ handle_packets(int infd)
FD_SET(infd, &rfds);
timeout.tv_sec = 3;
- syslog(LOG_INFO, "Iteration: %d\n", i++);
nfd = pselect(infd+1, &rfds, NULL, NULL, &timeout, &orig_sigmask);
if (child_exitted) {
@@ -224,7 +222,7 @@ handle_packets(int infd)
qp->qp_runcmd.qp_stderr_port);
break;
case QP_RECVFILE:
- syslog(LOG_INFO, "Got a QP_GETFILE with path = %s, "
+ syslog(LOG_INFO, "Got a QP_RECVFILE with path = %s, "
"ifd = %d, count = %d, mode = %o\n",
qp->qp_recvfile.qp_path,
qp->qp_recvfile.qp_if_port,
@@ -242,9 +240,10 @@ handle_packets(int infd)
qp->qp_recvfile.qp_count, nbytes);
rp = make_qp_returncode(-1, 0, tmpstr);
} else {
- rp = make_qp_returncode(0, 0, "Tranfer Complete");
+ rp = make_qp_returncode(0, 0, "Transfer Complete");
}
send_packet(fileno(stdout), rp);
+ qpfree(rp);
break;
case QP_SENDFILE:
syslog(LOG_INFO, "Got a QP_SENDFILE with path = %s, "