Project

General

Profile

Bug #9959

pthread_mutex_init should initialize mutex appropriately for robust mutex_init

Added by Rich Lowe about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2018-11-06
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Sun mutexes expect that a mutex_t for a robust mutex be initialized to all 0 prior to mutex_init(), posix mutexes do not.
pthread_mutex_init() should 0 out any uninitialized mutex_t prior to calling mutex_t on it, if a robust mutex is requested.

History

#1

Updated by Electric Monk about 1 year ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

git commit 6da2547363ddbd247ee9513db83b05a31bca31af

commit  6da2547363ddbd247ee9513db83b05a31bca31af
Author: Richard Lowe <richlowe@richlowe.net>
Date:   2018-11-26T02:13:30.000Z

    9959 pthread_mutex_init should initialize mutex appropriately for robust mutex_init
    Reviewed by: Jason King <jason.king@joyent.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF