branch merge draft
authorMahlon E. Smith <mahlon@martini.nu>
Wed, 27 Oct 2021 14:51:51 -0700
changeset 26 c4e39ebb6032
parent 25 970ca83c849b (current diff)
parent 23 89ba1d73b232 (diff)
child 27 38fef53ec76f
branch merge
--- a/Makefile	Thu Aug 05 10:48:20 2021 -0700
+++ b/Makefile	Wed Oct 27 14:51:51 2021 -0700
@@ -14,7 +14,7 @@
 	nim --debugger:on --nimcache:.cache c ${FILES}
 
 release: ${FILES}
-	nim -d:release --opt:speed --parallelBuild:0 --nimcache:.cache c ${FILES}
+	nim -d:release -d:nimDebugDlOpen --opt:speed --parallelBuild:0 --nimcache:.cache c ${FILES}
 
 docs:
 	nim doc ${FILES}
--- a/netdata_tsrelay.nim	Thu Aug 05 10:48:20 2021 -0700
+++ b/netdata_tsrelay.nim	Wed Oct 27 14:51:51 2021 -0700
@@ -31,11 +31,11 @@
 import
     db_postgres,
     json,
-    math,
     nativesockets,
     net,
     parseopt,
     posix,
+    std/exitprocs,
     strutils,
     strformat,
     tables,
@@ -382,7 +382,7 @@
 
 
 when isMainModule:
-    system.addQuitProc( resetAttributes )
+    addExitProc( resetAttributes )
     conf = parse_cmdline()
     if conf.debug: echo hl( $conf, fgYellow )
     serverloop( conf )