Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,6 @@ static int hyper_setup_container_rootfs(void *data)
goto fail;
}

fprintf(stdout, "container root directory %s\n", root);

if (container->fstype) {
char dev[128];
char *options = NULL;
Expand Down
10 changes: 3 additions & 7 deletions src/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,31 +67,28 @@ static int hyper_send_exec_code(struct hyper_exec *exec) {

static void pts_hup(struct hyper_event *de, int efd, struct hyper_exec *exec)
{
fprintf(stdout, "%s, seq %" PRIu64"\n", __func__, exec->seq);

hyper_event_hup(de, efd);

hyper_release_exec(exec);
}

static void stdin_hup(struct hyper_event *de, int efd)
{
struct hyper_exec *exec = container_of(de, struct hyper_exec, stdinev);
fprintf(stdout, "%s\n", __func__);
fprintf(stdout, "%s, seq %" PRIu64", id %s\n", __func__, exec->seq, exec->id);
return pts_hup(de, efd, exec);
}

static void stdout_hup(struct hyper_event *de, int efd)
{
struct hyper_exec *exec = container_of(de, struct hyper_exec, stdoutev);
fprintf(stdout, "%s\n", __func__);
fprintf(stdout, "%s, seq %" PRIu64", id %s\n", __func__, exec->seq, exec->id);
return pts_hup(de, efd, exec);
}

static void stderr_hup(struct hyper_event *de, int efd)
{
struct hyper_exec *exec = container_of(de, struct hyper_exec, stderrev);
fprintf(stdout, "%s\n", __func__);
fprintf(stdout, "%s, seq %" PRIu64", id %s\n", __func__, exec->seq, exec->id);
return pts_hup(de, efd, exec);
}

Expand Down Expand Up @@ -802,7 +799,6 @@ static int hyper_kill_container_processes(struct hyper_container *c) {
if (st.st_ino != st1.st_ino)
continue;

fprintf(stdout, "kill process of container %d\n", pid);
kill(pid, SIGKILL);
loop = 1;
}
Expand Down
1 change: 0 additions & 1 deletion src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ static void hyper_term_all(struct hyper_pod *pod)
fprintf(stdout, "Sending SIGTERM\n");

for (--index; index >= 0; --index) {
fprintf(stdout, "kill process %d\n", pids[index]);
kill(pids[index], SIGTERM);
}

Expand Down
1 change: 0 additions & 1 deletion src/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ static int hyper_get_ifindex(char *nic)
int fd, ifindex = -1;
char path[512], buf[8];

fprintf(stdout, "net device %s\n", nic);
sprintf(path, "/sys/class/net/%s/ifindex", nic);
fprintf(stdout, "net device sys path is %s\n", path);

Expand Down