DEBUG(2, "start %s %s \n", s->file, s->param);
if (pipe(pipefd) == -1) {
DEBUG(2, "start %s %s \n", s->file, s->param);
if (pipe(pipefd) == -1) {
s->fd.stream.string_data = true,
s->fd.stream.notify_read = pipe_cb,
runqueue_process_add(q, &s->proc, pid);
s->fd.stream.string_data = true,
s->fd.stream.notify_read = pipe_cb,
runqueue_process_add(q, &s->proc, pid);
dup2(pipefd[1], STDOUT_FILENO);
dup2(pipefd[1], STDERR_FILENO);
dup2(pipefd[1], STDOUT_FILENO);
dup2(pipefd[1], STDERR_FILENO);
execlp(s->file, s->file, s->param, NULL);
exit(1);
}
execlp(s->file, s->file, s->param, NULL);
exit(1);
}