]> Cypherpunks.ru repositories - goredo.git/blobdiff - status.go
Download link for 1.2.0 release
[goredo.git] / status.go
index 994e431d57739f1848c386b92003338cea2f0e98..e6c9b3124ab12687c979096e8ea8dad2b722ad81 100644 (file)
--- a/status.go
+++ b/status.go
@@ -1,6 +1,6 @@
 /*
-goredo -- redo implementation on pure Go
-Copyright (C) 2020 Sergey Matveev <stargrave@stargrave.org>
+goredo -- djb's redo implementation on pure Go
+Copyright (C) 2020-2021 Sergey Matveev <stargrave@stargrave.org>
 
 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