Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen prefer ETIMEDOUT.
details: https://anonhg.NetBSD.org/src/rev/b5965484b9d0
branches: trunk
changeset: 778785:b5965484b9d0
user: christos <christos%NetBSD.org@localhost>
date: Fri Apr 13 14:42:18 2012 +0000
description:
prefer ETIMEDOUT.
diffstat:
lib/libc/gen/getpass.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a3c3cdc29b50 -r b5965484b9d0 lib/libc/gen/getpass.c
--- a/lib/libc/gen/getpass.c Fri Apr 13 14:39:49 2012 +0000
+++ b/lib/libc/gen/getpass.c Fri Apr 13 14:42:18 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getpass.c,v 1.23 2012/04/13 14:39:34 christos Exp $ */
+/* $NetBSD: getpass.c,v 1.24 2012/04/13 14:42:18 christos Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getpass.c,v 1.23 2012/04/13 14:39:34 christos Exp $");
+__RCSID("$NetBSD: getpass.c,v 1.24 2012/04/13 14:42:18 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -132,7 +132,7 @@
pfd.revents = 0;
switch (poll(&pfd, 1, tout * 1000)) {
case 0:
- errno = ENODATA;
+ errno = ETIMEDOUT;
/*FALLTHROUGH*/
case -1:
goto restore;
Home |
Main Index |
Thread Index |
Old Index