mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-08-27 03:25:50 +00:00
Merge pull request #212 from laijs/non-error-msg
don't send non-error message to stderr
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user