fjohnson/rotman — Issue #2: dcm2nii locks configuration file.
Author: fjohnson
Created: 2011-11-23 15:46:36+00:00
State: open

dcm2nii locks its configuration file with an exclusive lock and it attempts to do so in a non blocking fashion. If two copies are started at the same time and attempt to read the config file at the same time the copy that has not attained the lock will crash.

Reproduce:

Start any process and attain an exclusive lock on the dcm2nii configuration file. Start up dcm2nii. It will crash. This only applies to the version on Ninja. On my workstation dcm2nii does not attempt to get the lock. Do a _strace_ to see if your version of dcm2nii is attempting to acquire a lock.

Expect to see:
dcm2nii operating normally.

Saw instead:
dcm2nii crashing with exception stating that it failed to read the configuration file.