Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 1998 15:28:47 -0700 (PDT)
From:      John Birrell <jb@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG
Subject:   cvs commit: src/lib/libc_r/uthread uthread_read.c uthread_readv.c uthread_write.c uthread_writev.c
Message-ID:  <199806102228.PAA11320@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jb          1998/06/10 15:28:47 PDT

  Modified files:
    lib/libc_r/uthread   uthread_read.c uthread_readv.c 
                         uthread_write.c uthread_writev.c 
  Log:
  Check the access mode in the flags before waiting on a read or a write
  that might never be possible if the file was not opened in the corrent
  mode. This prevents a hang for bad programs. Why do people code like that?
  
  Revision  Changes    Path
  1.6       +13 -1     src/lib/libc_r/uthread/uthread_read.c
  1.6       +13 -1     src/lib/libc_r/uthread/uthread_readv.c
  1.8       +13 -1     src/lib/libc_r/uthread/uthread_write.c
  1.9       +13 -1     src/lib/libc_r/uthread/uthread_writev.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806102228.PAA11320>