perror("socketpair");
return NULL;
}
- log_message("launching tunnel command \"%s\"\n", tunnelcmd);
+ log_message(LOG_PROTOCOL, "launching tunnel command \"%s\"\n", tunnelcmd);
if (fork() == 0) {
close(fd[0]);
close(0);
n = write(fd, buf, len);
if (n <= 0) {
- log_error(_("write on fd%d: %s\n"), fd, strerror(errno));
+ log_error(LOG_PROTOCOL, _("write on fd%d: %s\n"), fd, strerror(errno));
return -1;
}
len -= n;