/* Try connecting, the daemon should have started by now. */
message (true,
"Emacs daemon should have started, trying to connect again\n");
-
- if ((emacs_socket = set_socket (1)) == INVALID_SOCKET)
- {
- message (true, ("Error: Cannot connect "
- "even after starting the Emacs daemon\n"));
- exit (EXIT_FAILURE);
- }
}
else if (dpid < 0)
{
# endif
execvp ("emacs", d_argv);
message (true, "%s: error starting emacs daemon\n", progname);
+ exit (EXIT_FAILURE);
}
# else /* WINDOWSNT */
DWORD wait_result;
if (!w32_window_app ())
message (true,
"Emacs daemon should have started, trying to connect again\n");
- if ((emacs_socket = set_socket (1)) == INVALID_SOCKET)
+# endif /* WINDOWSNT */
+
+ emacs_socket = set_socket (true);
+ if (emacs_socket == INVALID_SOCKET)
{
message (true,
"Error: Cannot connect even after starting the Emacs daemon\n");
exit (EXIT_FAILURE);
}
-# endif /* WINDOWSNT */
}
#endif /* HAVE_SOCKETS && HAVE_INET_SOCKETS */