Loris Nardo commented on a discussion on cpukit/libcsupport/src/open.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/178#note_110819 > rv = (*iop->pathinfo.handlers->open_h)( iop, path, oflag, mode ); > > if ( rv == 0 ) { > - rtems_libio_iop_flags_set( iop, LIBIO_FLAGS_OPEN ); > - > + /* > + * Postpone the setting of LIBIO_FLAGS_OPEN after the truncation of the > + * file, this ensures that the file descriptor cannot be used or closed > + * during or just before the truncation by some other thread. > + */ This should be fixed now -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/178#note_110819 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
