From 636574d1cffac55d71af68a651604ba0ee8792ca Mon Sep 17 00:00:00 2001 From: gardners Date: Mon, 16 Jul 2012 17:05:13 +0930 Subject: [PATCH] towards DNA helper application. --- dna_helper.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dna_helper.c b/dna_helper.c index e877cbd3..b0fd0241 100644 --- a/dna_helper.c +++ b/dna_helper.c @@ -93,6 +93,8 @@ void dna_helper_monitor(int fd) return; } +struct sched_ent dna_helper_sched; + static int dna_helper_start(const char *command, const char *arg) { int stdin_fds[2], stdout_fds[2]; @@ -135,7 +137,9 @@ dna_helper_start(const char *command, const char *arg) { dna_helper_stdout = stdout_fds[1]; /* Need to watch dna_helper_stdout */ - // XXX fd_watch(dna_helper_stdout,dna_helper_monitor,POLL_IN); + // XXX need to initialise structure before calling watch + // XXX watch(&dna_helper_sched); + // XXX need to add unwatch() when we detect that the process has died. return 0; } }