From: <ta...@us...> - 2010-03-27 06:05:55
|
Revision: 4588 http://gfarm.svn.sourceforge.net/gfarm/?rev=4588&view=rev Author: tatebe Date: 2010-03-27 06:05:49 +0000 (Sat, 27 Mar 2010) Log Message: ----------- fix an error code when it fails to connect to the UNIX domain socket Modified Paths: -------------- gfarm_v2/trunk/lib/libgfarm/gfarm/gfs_client.c Modified: gfarm_v2/trunk/lib/libgfarm/gfarm/gfs_client.c =================================================================== --- gfarm_v2/trunk/lib/libgfarm/gfarm/gfs_client.c 2010-03-27 02:57:25 UTC (rev 4587) +++ gfarm_v2/trunk/lib/libgfarm/gfarm/gfs_client.c 2010-03-27 06:05:49 UTC (rev 4588) @@ -237,9 +237,9 @@ #endif rv = connect(sock, (struct sockaddr *)&peer_un, socklen); if (rv == -1) { + save_errno = errno; close(sock); - if (errno != ENOENT) { - save_errno = errno; + if (save_errno != ENOENT) { gflog_debug(GFARM_MSG_1001173, "connect() with UNIX socket failed: %s", strerror(save_errno)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |