Author: kib Date: Thu May 30 15:12:20 2019 New Revision: 348424 URL: https://svnweb.freebsd.org/changeset/base/348424
Log: MFC r348157: Report ref count of the backing object as st_nlink for posix shm fd. Modified: stable/12/sys/kern/uipc_shm.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/kern/uipc_shm.c ============================================================================== --- stable/12/sys/kern/uipc_shm.c Thu May 30 15:10:41 2019 (r348423) +++ stable/12/sys/kern/uipc_shm.c Thu May 30 15:12:20 2019 (r348424) @@ -419,6 +419,7 @@ shm_stat(struct file *fp, struct stat *sb, struct ucre mtx_unlock(&shm_timestamp_lock); sb->st_dev = shm_dev_ino; sb->st_ino = shmfd->shm_ino; + sb->st_nlink = shmfd->shm_object->ref_count; return (0); } _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"