~schuster/mysql-proxy/remove_unix_socket

« back to all changes in this revision

Viewing changes to src/network-socket.c

  • Committer: michael.schuster at oracle
  • Date: 2010-04-29 13:23:08 UTC
  • Revision ID: michael.schuster@oracle.com-20100429132308-mqtz5rkrt031un13
remove unix socket at shutdown: remove race window, make logic for "remove the once we created only" better

Show diffs side-by-side

added added

removed removed

Lines of Context:
397
397
                                        G_STRLOC,
398
398
                                        con->dst->name->str,
399
399
                                        g_strerror(errno), errno);
400
 
                        con->dst->fail_errno = errno; /* if a unix socket, this tells us "don't remove" */
401
400
                        return NETWORK_SOCKET_ERROR;
402
401
                }
403
402
 
430
429
                }
431
430
        }
432
431
 
 
432
        con->dst->can_unlink_socket = TRUE;
433
433
        return NETWORK_SOCKET_SUCCESS;
434
434
}
435
435