about summary refs log tree commit diff
path: root/contrib
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2020-04-20 00:55:24 +0200
committerAlexander Barton <alex@barton.de>2020-04-20 00:55:24 +0200
commit14777c18cfc92e020b937d58e0bfb6f4779f8f2c (patch)
tree4a244a83eac19090c7ab802f824895e419e83f13 /contrib
parente4a6bd509966396390c8d6affceedf35785159bf (diff)
downloadngircd-14777c18cfc92e020b937d58e0bfb6f4779f8f2c.tar.gz
ngircd-14777c18cfc92e020b937d58e0bfb6f4779f8f2c.zip
contrib/nglog.sh: Fork awk(1), deal better with signals (CTRL-C)
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/nglog.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/nglog.sh b/contrib/nglog.sh
index c96f993a..2c558eb4 100755
--- a/contrib/nglog.sh
+++ b/contrib/nglog.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 #
 # ngIRCd -- The Next Generation IRC Daemon
-# Copyright (c)2001-2019 Alexander Barton (alex@barton.de) and Contributors
+# Copyright (c)2001-2020 Alexander Barton (alex@barton.de) and Contributors
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,4 +23,6 @@ awk '
   /^\[[[:digit:]]+:5 / {print "\033[1m" $0 "\033[0m"}
   /^\[[[:digit:]]+:6 / {print $0}
   /^\[[[:digit:]]+:7 / {print "\033[90m" $0 "\033[0m"}
-'
+' </dev/stdin &
+
+wait