]> arthur.barton.de Git - ngircd-alex.git/commitdiff
contrib/nglog.sh: Fork awk(1), deal better with signals (CTRL-C)
authorAlexander Barton <alex@barton.de>
Sun, 19 Apr 2020 22:55:24 +0000 (00:55 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 19 Apr 2020 22:55:24 +0000 (00:55 +0200)
contrib/nglog.sh

index c96f993a805a83c12a4ba6a41efb75dc0bb29d8b..2c558eb4d6b0b6d6087ff86ab77f63f23d2445d2 100755 (executable)
@@ -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