[ruby-cvs:70999] normal:r63908 (trunk): addr2line.c: no need to keep fd around after mmap

normal at ruby-lang.org normal at ruby-lang.org
Mon Jul 9 08:43:14 JST 2018


normal	2018-07-09 08:43:14 +0900 (Mon, 09 Jul 2018)

  New Revision: 63908

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63908

  Log:
    addr2line.c: no need to keep fd around after mmap
    
    POSIX mmap(3) manpage stipulates mmap bumps the reference
    count of the file description.  Thus keeping a file descriptor
    to maintain the reference is not necessary.
    
    If this didn't work, every extension .so would require a
    permanent FD, which is obviously not the case.

  Modified files:
    trunk/addr2line.c


More information about the ruby-cvs mailing list