diff options
author | Jeff Law <law@redhat.com> | 2012-11-28 14:12:28 -0700 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 2012-11-28 14:16:12 -0700 |
commit | 14bc93a967e62abf8cf2704725b6f76619399f83 (patch) | |
tree | 80ddd44c7357253f59d6477ced8266856ee9d247 /sunrpc/rpc/svc.h | |
parent | b54eb3cb0a4325975d9b82709865a055bc8da910 (diff) | |
download | glibc-14bc93a967e62abf8cf2704725b6f76619399f83.tar glibc-14bc93a967e62abf8cf2704725b6f76619399f83.tar.gz glibc-14bc93a967e62abf8cf2704725b6f76619399f83.tar.bz2 glibc-14bc93a967e62abf8cf2704725b6f76619399f83.zip |
[BZ #14889]
* sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
* sunrpc/svc.c: Include time.h.
(__svc_accept_failed): New function.
* sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
any reason other than EINTR, call __svc_accept_failed.
* sunrpc/svc_udp.c (svcudp_recv): Similarly.
* sunrpc/svc_unix.c (rendezvous_request): Similarly.
Diffstat (limited to 'sunrpc/rpc/svc.h')
-rw-r--r-- | sunrpc/rpc/svc.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sunrpc/rpc/svc.h b/sunrpc/rpc/svc.h index 54d1ac14f1..58a5f7da95 100644 --- a/sunrpc/rpc/svc.h +++ b/sunrpc/rpc/svc.h @@ -1,6 +1,23 @@ /* * svc.h, Server-side remote procedure call interface. * + * Copyright (C) 2012 Free Software Foundation, Inc. + * This file is part of the GNU C Library. + * + * The GNU C Library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * The GNU C Library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with the GNU C Library; if not, see + * <http://www.gnu.org/licenses/>. + * * Copyright (c) 2010, Oracle America, Inc. * * Redistribution and use in source and binary forms, with or without @@ -316,4 +333,5 @@ extern SVCXPRT *svcunix_create (int __sock, u_int __sendsize, u_int __recvsize, __END_DECLS +extern void __svc_accept_failed (void) attribute_hidden; #endif /* rpc/svc.h */ |