X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=status.go;h=7b45905cd089ef3fe49357b649d0dd375fad8ecd;hb=ff2443f496cbf7f648b84a78e468dc3f130c37f2;hp=139ceb75f9951e7540d55f07733f2dfda5481ce6;hpb=cd29a67e26ef05f0ffadd83448f09886edef4111;p=goredo.git diff --git a/status.go b/status.go index 139ceb7..7b45905 100644 --- a/status.go +++ b/status.go @@ -20,6 +20,7 @@ package main import ( "flag" "fmt" + "log" "os" ) @@ -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 @@ -96,7 +97,8 @@ func statusInit() { ) } LogMutex.Lock() - os.Stderr.WriteString(fillUpToTermSize(out, "\r")) + os.Stderr.WriteString(erasedStatus(out, "\r")) + LogWasStatus = true LogMutex.Unlock() } }()