diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-08-08 07:11:21 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-08-08 07:11:21 +0000 |
commit | a30fb2df74710413014897f527bb565caf7cab9f (patch) | |
tree | a59a2e7e87ecefd8d05a5035fcd358e0465a36dd /nptl/tst-cancel17.c | |
parent | 1b990bd670519f84341d4e1e470bb577e2b01709 (diff) | |
download | glibc-a30fb2df74710413014897f527bb565caf7cab9f.tar.gz glibc-a30fb2df74710413014897f527bb565caf7cab9f.tar.xz glibc-a30fb2df74710413014897f527bb565caf7cab9f.zip |
Update.
2003-08-06 Jakub Jelinek <jakub@redhat.com> * tst-cancel17.c (do_test): Make len2 maximum of page size and PIPE_BUF.
Diffstat (limited to 'nptl/tst-cancel17.c')
-rw-r--r-- | nptl/tst-cancel17.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nptl/tst-cancel17.c b/nptl/tst-cancel17.c index d1734a2e5f..9fb089ac83 100644 --- a/nptl/tst-cancel17.c +++ b/nptl/tst-cancel17.c @@ -226,7 +226,9 @@ do_test (void) cl_called = 0; - size_t len2 = fpathconf (fds[1], _PC_PIPE_BUF) + sizeof (mem) + 1; + size_t len2 = fpathconf (fds[1], _PC_PIPE_BUF); + size_t page_size = sysconf (_SC_PAGESIZE); + len2 = (len2 < page_size ? page_size : len2) + sizeof (mem) + 1; char *mem2 = malloc (len2); if (mem2 == NULL) { |