From 89ac00bd6a17d53a2dca2821a2da7ec17235632b Mon Sep 17 00:00:00 2001 From: Steve Dee Date: Wed, 18 Dec 2013 15:21:18 -0800 Subject: [PATCH] Write to stdout in daemon mode Fixes nohup. --- v/term.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/v/term.c b/v/term.c index 2775f1239..ce0c78766 100644 --- a/v/term.c +++ b/v/term.c @@ -45,7 +45,13 @@ void u2_term_io_init() { u2_utty* uty_u = malloc(sizeof(u2_utty)); - c3_i fid_i = 0; // stdin, yes we write to it... + c3_i fid_i; + + if ( u2_yes == u2_Host.ops_u.dem ) { + fid_i = 1; + } else { + fid_i = 0; // stdin, yes we write to it... + } // Initialize event processing. Rawdog it. //