Donny9 commented on issue #15787: URL: https://github.com/apache/nuttx/issues/15787#issuecomment-2644456418
> No, I mean the call to selftest only succeeds if it returns a non-zero error code. I cannot make any subsequent ioctl call due to the hanging. The hanging only seems to occur when 0 is returned from the selftest function. > > The hanging doesn't occur in my implementation of selftest, though. I went to line 878 of sensor.c where the lowerhalf selftest is called, and added ret = -EINVAL on the next line. If I do this, orb_ioctl doesn't hang even if my lowerhalf selftest call returns 0. I cannot figure out why this would be because other ioctl commands in sensor.c return 0 with no problems. I will share an example code snippet that I have been using shortly. This is very strange. You can add some logging in file_vioctl to see what happens in the subsequent process. If the system hangs, does it manifest as a crash? Are there any logs available? -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org