Module Name: src Committed By: christos Date: Mon Jul 19 17:18:14 UTC 2010
Modified Files: src/lib/libedit: read.c Log Message: retry the read after sigwinch too, from Edward Sheldrake To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 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.55 src/lib/libedit/read.c:1.56 --- src/lib/libedit/read.c:1.55 Mon Mar 22 18:59:06 2010 +++ src/lib/libedit/read.c Mon Jul 19 13:18:13 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: read.c,v 1.55 2010/03/22 22:59:06 christos Exp $ */ +/* $NetBSD: read.c,v 1.56 2010/07/19 17:18:13 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.55 2010/03/22 22:59:06 christos Exp $"); +__RCSID("$NetBSD: read.c,v 1.56 2010/07/19 17:18:13 christos Exp $"); #endif #endif /* not lint && not SCCSID */ @@ -321,10 +321,14 @@ again: el->el_signal->sig_no = 0; while ((num_read = read(el->el_infd, cbuf + cbp, 1)) == -1) { - if (el->el_signal->sig_no == SIGCONT) { + switch (el->el_signal->sig_no) { + case SIGCONT: + case SIGWINCH: sig_set(el); el_set(el, EL_REFRESH); goto again; + default: + break; } if (!tried && read__fixio(el->el_infd, errno) == 0) tried = 1;