Commit 7d6652ad authored by ROOL's avatar ROOL :robot:
Browse files

This commit was manufactured by cvs2git to create tag 'rthornb_UrsulaBuild- 17Jun1998'.

Sprout from master 1998-05-06 11:35:35 UTC Stewart Brodie <sbrodie@gitlab.riscosopen.org> 'Minor modification to Makefile to force a copy of sys.h.ioctl_comp to'
Cherrypick from master 1997-03-06 14:28:02 UTC Richard Buckley <rbuckley@gitlab.riscosopen.org> 'Imported from Babel':
    rpclib/rpc/Makefile
    rpclib/rpc/c/clnt_udp
parent bba967d4
This diff is collapsed.
......@@ -37,14 +37,6 @@ static char sccsid[] = "@(#)clnt_udp.c 1.39 87/08/11 Copyr 1984 Sun Micro";
* Copyright (C) 1984, Sun Microsystems, Inc.
*/
/* Acorn modification history:
Date Who Comments
------------------------------------------------------------------------------
04-Mar-97 jmf Treat ENOBUFS from sendto() as transient (like EIO).
*/
#include <stdio.h>
#include <rpc/rpc.h>
#include <sys/socket.h>
......@@ -310,7 +302,7 @@ call_again:
send_again:
if (sendto(cu->cu_sock, cu->cu_outbuf, outlen, 0,
(struct sockaddr *)&(cu->cu_raddr), cu->cu_rlen)
!= outlen && errno != EIO && errno != ENOBUFS)
!= outlen && errno != EIO)
{
cu->cu_error.re_errno = errno;
return (cu->cu_error.re_status = RPC_CANTSEND);
......@@ -631,7 +623,7 @@ db(("co_sendagain "));
if (sendto(cu->cu_sock, cu->cu_outbuf, data->outlen, 0,
(struct sockaddr *)&(cu->cu_raddr), cu->cu_rlen)
!= data->outlen && errno != EIO && errno != ENOBUFS)
!= data->outlen && errno != EIO)
{
data->next_op = op_error;
cu->cu_error.re_errno = errno;
......@@ -899,6 +891,7 @@ db(("clntudp_polltransfer\n"));
res = schedule(data);
if (res != RPC_SUCCESS)
return res; /* return error */
else if (data->next_op == op_wait)
return RPC_BUSY; /* special return value to indicate we are awaiting a reply from the server */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment