-static int open_stat_pipe(void)
-{
- int ret, fd[3] = {-1, 1, 0};
- pid_t pid;
- ret = para_exec_cmdline_pid(&pid, BINDIR "/para_client stat", fd);
- if (ret >= 0) {
- ret = fd[1];
- PARA_NOTICE_LOG("stat pipe opened, fd %d\n", ret);
- add_close_on_fork_list(ret);
- mark_fd_nonblock(ret);
- } else
- clean_exit(EXIT_FAILURE, "failed to open status pipe");
- return ret;
-}
-
-void signal_event_handler(struct task *t)