Displaying 1 result from an estimated 1 matches for "authsocketdir".
2001 Feb 10
1
Handling of failed connect()s when ssh-agent is busy
...sock = socket(AF_UNIX, SOCK_STREAM, 0);
if (sock < 0)
{
error("Socket failed");
if (newauthsockdir != NULL)
{
unlink(authsocket);
chdir("/");
rmdir(newauthsockdir);
xfree(newauthsockdir);
}
xfree(authsocketdir);
return -1;
}
if (connect(sock, (struct sockaddr *)&sunaddr,
AF_UNIX_SIZE(sunaddr)) < 0)
{
close(sock);
if (newauthsockdir != NULL)
{
unlink(authsocket);
chdir("/");
rmdir(newauthsockdir);
x...