Hi Yuichi, On Tue, 2013-02-19 at 10:27 +0900, Yuichi SEINO wrote: > Hi Xia, > > I have a question about the following part. The write man explain that > "errno" is set appropriately if the write return -1. So, if "rv" is > equal to 0, strerror(errno) may not output the correct message. What > do you think about it?
Good catch, I think we should differentiate the cases of rv == -1 or rv == 0. Maybe setting errno to ENOSPC when rv == 0. BTW, apart from that, does this patch fix your original issue? Thanks, Jiaju _______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org