@@ -67,31 +67,28 @@ static int hyper_send_exec_code(struct hyper_exec *exec) {
6767
6868static void pts_hup (struct hyper_event * de , int efd , struct hyper_exec * exec )
6969{
70- fprintf (stdout , "%s, seq %" PRIu64 "\n" , __func__ , exec -> seq );
71-
7270 hyper_event_hup (de , efd );
73-
7471 hyper_release_exec (exec );
7572}
7673
7774static void stdin_hup (struct hyper_event * de , int efd )
7875{
7976 struct hyper_exec * exec = container_of (de , struct hyper_exec , stdinev );
80- fprintf (stdout , "%s\n" , __func__ );
77+ fprintf (stdout , "%s, seq %" PRIu64 ", id %s \n" , __func__ , exec -> seq , exec -> id );
8178 return pts_hup (de , efd , exec );
8279}
8380
8481static void stdout_hup (struct hyper_event * de , int efd )
8582{
8683 struct hyper_exec * exec = container_of (de , struct hyper_exec , stdoutev );
87- fprintf (stdout , "%s\n" , __func__ );
84+ fprintf (stdout , "%s, seq %" PRIu64 ", id %s \n" , __func__ , exec -> seq , exec -> id );
8885 return pts_hup (de , efd , exec );
8986}
9087
9188static void stderr_hup (struct hyper_event * de , int efd )
9289{
9390 struct hyper_exec * exec = container_of (de , struct hyper_exec , stderrev );
94- fprintf (stdout , "%s\n" , __func__ );
91+ fprintf (stdout , "%s, seq %" PRIu64 ", id %s \n" , __func__ , exec -> seq , exec -> id );
9592 return pts_hup (de , efd , exec );
9693}
9794
@@ -831,7 +828,6 @@ static int hyper_kill_container_processes(struct hyper_container *c) {
831828 if (st .st_ino != st1 .st_ino )
832829 continue ;
833830
834- fprintf (stdout , "kill process of container %d\n" , pid );
835831 kill (pid , SIGKILL );
836832 loop = 1 ;
837833 }
0 commit comments