Project

General

Profile

Actions

Bug #1331

closed

[PATCH] libthread_xu: fix problem with umtx errno override

Added by alexh almost 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Simon Schubert found a bug today which causes an undesired value in
errno in a threaded context if a umtx syscall also returns an error.

This is the new fix:

http://gitweb.dragonflybsd.org/~alexh/dragonfly.git/commit/ac9d39b6181ccc289f198a8e80fae624aa7d3b2a


Files

readdir2.c (1.16 KB) readdir2.c alexh, 04/23/2009 12:40 PM
Actions #1

Updated by alexh almost 15 years ago

Attached is a test case. Before the fix, when using an argument of 100 or so and
trying a few times, one will see one or more "thread tester error: Device busy".
This Device Busy comes from umtx and not readdir.
After applying the patch that error doesn't occur anymore.

Actions

Also available in: Atom PDF