GNOME Bugzilla – Bug 306912
gamin_write_byte/gam_client_conn_write don't loop over write()
Last modified: 2005-06-08 17:22:26 UTC
Please describe the problem: Quoting from the glibc manual: The `write' function writes up to SIZE bytes from BUFFER to the file with descriptor FILEDES. The data in BUFFER is not necessarily a character string and a null character is output like any other character. The return value is the number of bytes actually written. This may be SIZE, but can always be smaller. Your program should always call `write' in a loop, iterating until all the data is written. gamin_write_byte and gam_client_conn_write don't do this but should. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 47455 [details] [review] patch
Yes you're right, it applies fine, and the regression tests still passes okay, so applied and commited, thanks ! Daniel