exec other program and connect to it with unix domain

i exec a server program(it is a socket server, unix domain), and connect to it.
maybe the server is starting, so connect awalys fail with errno is ENOENT.

i have
setsockopt(m_socketfd, SOL_SOCKET, SO_SNDTIMEO, &timeout, len);
it still fails.

does anybody know a good solution.
thanks.


Source: linux

Leave a Reply