Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7146506

(fc) Add EACCES check to the return of fcntl native method

XMLWordPrintable

    • b28
    • x86
    • linux
    • Not verified

        FULL PRODUCT VERSION :


        ADDITIONAL OS VERSION INFORMATION :
        AIX HY-AIX64 1 7 000562E4D700

        A DESCRIPTION OF THE PROBLEM :
          From the man page said:
        F_SETLK :
        ...... If a conflicting lock is held by another process, this call returns -1 and sets errno to EACCES or EAGAIN.

        So EACCESS should be also checked for the sake the system is not return EAGAIN.

        The native code is in the file "src/solaris/native/sun/nio/ch/FileDispatcherImpl.c" and fix is very straight-forward.


        REPRODUCIBILITY :
        This bug can be reproduced always.

              alanb Alan Bateman
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: