close(fd);
return(n);
}
+
while (n_to_send > 0) {
#ifdef DEBUG
printf("n_to_send = %d\n", n_to_send);
return(n);
}
}
+ if (statb.st_size == 0) {
+ code = receive_object(conn, (char *)&n, INTEGER_T);
+ if (code) {
+ com_err(whoami, connection_errno(conn),
+ " awaiting ACK remote server after transmission of %s",
+ pathname);
+ close(fd);
+ return(code);
+ }
+ if (n) {
+ com_err(whoami, n, " from remote server after transmission of %s",
+ pathname);
+ close(fd);
+ return(n);
+ }
+ }
close(fd);
return(SMS_SUCCESS);
}