]> git.corax.cc Git - toolbox/commitdiff
Consume stdin to prevent SIGPIPE for producer
authorGan Ainm <gan.ainm.riomhphost@gmail.com>
Wed, 22 Feb 2023 18:45:36 +0000 (19:45 +0100)
committerMatthias Kruk <m10k@users.noreply.github.com>
Mon, 27 Feb 2023 10:23:55 +0000 (19:23 +0900)
include/log.sh

index b9eb3ccc9d2d3fcdd7e5643aa50d2d195ca3bdf5..c936789317a85ee702f4ad37faec948538adb97d 100644 (file)
@@ -87,6 +87,7 @@ _log_write() {
        local line
 
        if (( __log_verbosity < level )); then
+               [[ $# == 2 ]] &&  IFS="" read -r -d ""
                return 0
        fi