Skip to content

Commit 09ed25f

Browse files
committed
Fixed #8416: Hang when opening shared memory file
1 parent 650bd16 commit 09ed25f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/os/posix/os_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ int openCreateSharedFile(const char* pathname, int flags)
265265

266266
do {
267267
rc = fstat(fd, &st);
268-
} while (fd != 0 && SYSCALL_INTERRUPTED(errno));
268+
} while (rc != 0 && SYSCALL_INTERRUPTED(errno));
269269

270270
if (rc != 0)
271271
{

0 commit comments

Comments
 (0)