mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-08-26 18:17:25 +00:00
rename hyper_send_exec_eof
Signed-off-by: Gao feng <omarapazanadi@gmail.com>
This commit is contained in:
+1
-2
@@ -610,8 +610,7 @@ struct hyper_exec *hyper_find_exec_by_seq(struct hyper_pod *pod, uint64_t seq)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int hyper_send_exec_eof(int to, struct hyper_pod *pod,
|
||||
int pid, uint8_t code)
|
||||
int hyper_handle_exec_exit(struct hyper_pod *pod, int pid, uint8_t code)
|
||||
{
|
||||
struct hyper_exec *exec;
|
||||
|
||||
|
||||
+1
-2
@@ -32,8 +32,7 @@ int hyper_setup_exec_tty(struct hyper_exec *e);
|
||||
int hyper_dup_exec_tty(int fd, struct hyper_exec *e);
|
||||
struct hyper_exec *hyper_find_exec_by_pid(struct list_head *head, int pid);
|
||||
struct hyper_exec *hyper_find_exec_by_seq(struct hyper_pod *pod, uint64_t seq);
|
||||
int hyper_send_exec_eof(int to, struct hyper_pod *pod,
|
||||
int pid, uint8_t code);
|
||||
int hyper_handle_exec_exit(struct hyper_pod *pod, int pid, uint8_t code);
|
||||
int hyper_watch_exec_pty(struct hyper_exec *exec, struct hyper_pod *pod);
|
||||
void hyper_cleanup_exec(struct hyper_pod *pod);
|
||||
|
||||
|
||||
+1
-1
@@ -198,7 +198,7 @@ static int hyper_handle_exit(struct hyper_pod *pod)
|
||||
pid, WTERMSIG(status));
|
||||
}
|
||||
|
||||
if (pod && hyper_send_exec_eof(ctl.tty.fd, pod, pid, data[4]) < 0)
|
||||
if (pod && hyper_handle_exec_exit(pod, pid, data[4]) < 0)
|
||||
fprintf(stderr, "signal_loop send eof failed\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user