[PATCH 0 of 2] unlock mutexes on process crash (updated)

Maxim Dounin mdounin at mdounin.ru
Wed Nov 23 13:02:19 UTC 2011


Hello!

The following patches restore accept mutex unlock on abnormal process
termination (broken in 1.0.2 with introduction of POSIX semaphores support
in locks) and introduce unlocking of shared memory zone's locks.

This is updated patch series to address some off-list comments from Igor.
Changes include:

- the %uA used insead of %XA to log number of waiting processes;

- separate function used for wakeup after shared mutex unlock (reduces code
  duplication, improves code readability);

- separate function used for unlock after process crash (improves code
  readability).

Maxim Dounin



More information about the nginx-devel mailing list