Module Name:    src
Committed By:   christos
Date:           Mon Mar 22 22:59:06 UTC 2010

Modified Files:
        src/lib/libedit: read.c

Log Message:
https://bugzilla.redhat.com/show_bug.cgi?id=575383
Handle EINTR properly.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/lib/libedit/read.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libedit/read.c
diff -u src/lib/libedit/read.c:1.54 src/lib/libedit/read.c:1.55
--- src/lib/libedit/read.c:1.54	Thu Dec 31 10:58:26 2009
+++ src/lib/libedit/read.c	Mon Mar 22 18:59:06 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: read.c,v 1.54 2009/12/31 15:58:26 christos Exp $	*/
+/*	$NetBSD: read.c,v 1.55 2010/03/22 22:59:06 christos Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)read.c	8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: read.c,v 1.54 2009/12/31 15:58:26 christos Exp $");
+__RCSID("$NetBSD: read.c,v 1.55 2010/03/22 22:59:06 christos Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -173,7 +173,7 @@
 		return (e ? 0 : -1);
 
 	case EINTR:
-		return (-1);
+		return (0);
 
 	default:
 		return (-1);

Reply via email to