X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=status.go;h=e6c9b3124ab12687c979096e8ea8dad2b722ad81;hb=314f58ec690c7321535d6718e8d3a0ecb4cac019;hp=994e431d57739f1848c386b92003338cea2f0e98;hpb=465fef553f227a11b354182f588d9f6aa7fbbe09;p=goredo.git diff --git a/status.go b/status.go index 994e431..e6c9b31 100644 --- a/status.go +++ b/status.go @@ -1,6 +1,6 @@ /* -goredo -- redo implementation on pure Go -Copyright (C) 2020 Sergey Matveev +goredo -- djb's redo implementation on pure Go +Copyright (C) 2020-2021 Sergey Matveev 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 @@ -20,6 +20,7 @@ package main import ( "flag" "fmt" + "log" "os" ) @@ -40,7 +41,7 @@ var ( ) func statusInit() { - if *flagNoStatus { + if NoProgress || *flagNoStatus { return } if v := os.Getenv(EnvNoStatus); v == "1" { @@ -57,7 +58,7 @@ func statusInit() { var err error r, FdStatus, err = os.Pipe() if err != nil { - panic(err) + log.Fatalln(err) } go func() { running := 0