Donny9 commented on code in PR #10545:
URL: https://github.com/apache/nuttx/pull/10545#discussion_r1320931332


##########
fs/vfs/fs_eventfd.c:
##########
@@ -135,6 +135,7 @@ static FAR struct eventfd_priv_s *eventfd_allocdev(void)
 
       nxmutex_init(&dev->lock);
       nxmutex_lock(&dev->lock);
+      dev->crefs += 1;

Review Comment:
   No, because alloc dev is called when the user first calls eventfd, 
timer_create, signalfd, do not call it when dup.



-- 
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]

Reply via email to