Commit 7208d07e authored by wujing's avatar wujing

remove exit() which is comentouted

parent 3267aece
......@@ -215,7 +215,6 @@ void init_server_eventfd(int *watch_fd_list, int client_num, char *path)
if ((conn_socket = socket(AF_UNIX, SOCK_STREAM, 0)) < 0)
{
perror("socket (init_server_eventfd)\n");
//exit(1);
exit_fun("init_server_eventfd fatal: socket err");
}
......@@ -227,7 +226,6 @@ void init_server_eventfd(int *watch_fd_list, int client_num, char *path)
if (bind(conn_socket, (const struct sockaddr *)&addr, sizeof(struct sockaddr_un)) == -1)
{
perror("bind (init_server_eventfd)\n");
//exit(1);
exit_fun("init_server_eventfd fatal: bind err");
}
printf("bind completed (init_server_eventfd) \n");
......@@ -237,7 +235,6 @@ void init_server_eventfd(int *watch_fd_list, int client_num, char *path)
if (listen(conn_socket, 16) == -1)
{
perror("listen (init_server_eventfd)");
//exit(1);
exit_fun("init_server_eventfd fatal: listen err");
}
......@@ -248,7 +245,6 @@ void init_server_eventfd(int *watch_fd_list, int client_num, char *path)
if ((fd = accept(conn_socket, NULL, NULL)) == -1)
{
perror("accept (init_server_eventfd)\n");
exit(1);
exit_fun("init_server_eventfd fatal: accept err");
}
printf("accept completed (init_server_eventfd)\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment