]> git.tue.mpg.de Git - paraslash.git/commit
ao_write: Call ao_initialize() only once.
authorAndre Noll <maan@systemlinux.org>
Sun, 9 Mar 2014 14:21:48 +0000 (15:21 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 6 Apr 2014 06:53:26 +0000 (08:53 +0200)
commitf4b90d1c56f3dfb5e5214fd076df47202f1c69c6
tree3a72073227ab7c695ab62c8ca4c58a69aa9833a1
parent955705a4ef6b69e246914ed6330a713b4c13ccf4
ao_write: Call ao_initialize() only once.

It is possible that another instance of the ao writer is active
when aow_close() is called. Calling ao_shutdown() in ao_close()
might disturb the other instance and lead to a segmentation fault.

Fix this by calling ao_initialize() only once during aow_init()
and never call ao_shutdown() any more.
ao_write.c