The first test in prefs/addpref.m writes into /tmp/.octave_prefs
If there are two (or more) processes running at the same time they overwrite this file over.
See e.g. failures in
That looks like a bug to me.
Moreover – perhaps it is a more serious problem: what if I have two or more octave processes
running in the same working directory, could they overwrite each other prefs? Thould those be saved in some random-named files (or named per PID)?