]> git.tue.mpg.de Git - paraslash.git/commit
sc_send_bin_buffer: Use write_nonblock() rather than write_all().
authorAndre Noll <maan@systemlinux.org>
Sun, 11 Dec 2011 19:27:27 +0000 (20:27 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 20 Jan 2012 21:57:07 +0000 (22:57 +0100)
commit6934fc28976594d0eb387bfef25cb938c677814c
tree6400aec3e2f9e1ee2766ad1c25decde761f2fd2f
parent2e2f91c92bbdd4107925bcaf521242c588afbfe4
sc_send_bin_buffer: Use write_nonblock() rather than write_all().

The write_nonblock() variant is safer here as it allows to let the
callers deal with short writes.

Despite the name, write_nonblock() can be used for both blocking and
non-blocking fds. It will be renamed in a subsequent patch.
crypt.c
gcrypt.c