Merge pull request #212 from laijs/non-error-msg

don't send non-error message to stderr
This commit is contained in:
Lai Jiangshan
2016-10-15 11:36:18 +08:00
committed by GitHub
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ int hyper_handle_event(int efd, struct epoll_event *event)
}
if (event->events & EPOLLERR) {
fprintf(stderr, "get epoll err of not epool in event\n");
fprintf(stdout, "get epoll err on event: %p\n", he);
if (he->ops->hup)
he->ops->hup(he, efd);
return 0;
+3
View File
@@ -915,6 +915,9 @@ void hyper_cleanup_dns(struct hyper_pod *pod)
{
int fd, i;
if (pod->dns == NULL)
return;
for (i = 0; i < pod->d_num; i++) {
free(pod->dns[i]);
}
-1
View File
@@ -538,7 +538,6 @@ int hyper_open_channel(char *channel, int mode)
fd = -1;
if (strncmp(name, channel, strlen(channel))) {
fprintf(stderr, "channel %s, directory %s\n", channel, name);
continue;
}