]> git.tuebingen.mpg.de Git - paraslash.git/commit
file writer: Use xwrite() instead of plain write().
authorAndre Noll <maan@systemlinux.org>
Sat, 30 Mar 2013 19:12:40 +0000 (19:12 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 19 May 2013 13:19:44 +0000 (15:19 +0200)
commit7532dc26edc72f4ec98acd0a62e1b02994c34171
tree9c23b471289fcab5f76af40d06fed5baaea236c6
parent2f07d34b5d4c37606be5849b6ee51e0443707898
file writer: Use xwrite() instead of plain write().

Currently the file writer's ->post_select() sets t->error to -1 on
errors, rather than using a proper error code. This may result in
a segfault when this number is passed to para_strerror().

Replacing the call to write() by xwrite() not only gives a proper
error code but also treats EAGAIN as a non-fatal error.
file_write.c