#48 lstat is a blocking call subject to EINTR

open
nobody
None
5
2012-06-06
2012-06-06
Brian J. Murrell
No

Currently the lstat(2) calls in sqashfs-tools (mksquashfs.c specifically) don't handle EINTR. They should as lstat(2) is subject to being interrupted.

Please find attached a patch to handle this. Unfortunately the patch is against 4.0 since that's what's in RHEL 6.2 currently and therefore what I am working with.

Discussion

  • handling EINTR from lstat(2)