jerpelea opened a new pull request, #19151: URL: https://github.com/apache/nuttx/pull/19151
## Summary s/vfs/fs_lock.c: fix flock behavior for more threads and fds We need to use gettid instead of getpid, otherwise flocks applied from different threads are considered as single thread lock and are ignored (or updated). Also fix the behavior if process opens the file multiple times Linux/BSD manual states multiple file descriptors opened by a single process shall be treated independently. Therefore we also need to compare struct file pointer to determine whether the lock applies to the same descriptor or not. fs/vfs/fs_lock.c: support flock for SHM driver We can apply file lock on SHM inode as well. Ensure file_lock_get_path function passes and doesn't return EBADF errno. ## Impact RELEASE ## Testing CI -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
