]> git.tue.mpg.de Git - paraslash.git/commit
Fix a bug in para_write.
authorAndre Noll <maan@systemlinux.org>
Sat, 12 Jul 2008 10:40:36 +0000 (12:40 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 12 Jul 2008 10:40:36 +0000 (12:40 +0200)
commit4a562d17319e990f75ea3bbf5f3e25bfe0aafba7
treef97746ccd71f290656f3f211c3fa92993dfd5a09
parent6d213d3638eafeab4785e64decc7f4826a964c32
Fix a bug in para_write.

With the old code, the command "para_write < /dev/null" would
segfault because the wng_close() is called although the writer
node group was never opened. Fix this bug by introducing a new
field in struct writer_node_group that tracks whether wng_open()
was called.
write.h
write_common.c