From: John Hughes Date: Tue, 16 Oct 2001 10:20:22 +0000 (+0000) Subject: Fix umovestr of unmapped page for UnixWare X-Git-Tag: v4.5.18~1010 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cecf7f8d6115a247be7186013857270b2d588d5;p=strace Fix umovestr of unmapped page for UnixWare --- diff --git a/ChangeLog b/ChangeLog index 7884935d..67f16ac3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-10-16 John Hughes + + * util.c (umovestr): UnixWare (svr4?) returns 0 when trying + to read unmapped page. Make it possible to strace ksh. + 2001-10-03 David Mosberger * process.c (internal_clone): Avoid race condition by clearing diff --git a/util.c b/util.c index 595b847d..c59d25a7 100644 --- a/util.c +++ b/util.c @@ -711,7 +711,7 @@ char *laddr; while (left) { if (move > left) move = left; - if ((move = read(fd, laddr, move)) == -1) + if ((move = read(fd, laddr, move)) <= 0) return left != len ? 0 : -1; if (memchr (laddr, 0, move)) break; left -= move;