mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
67e912824a
A start. Updates #8320 Change-Id: I64057f977be51ba63ce635c56d67de7ecec415d1 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
22 lines
298 B
Go
22 lines
298 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package filch
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
func saveStderr() (*os.File, error) {
|
|
return os.Stderr, nil
|
|
}
|
|
|
|
func unsaveStderr(f *os.File) error {
|
|
os.Stderr = f
|
|
return nil
|
|
}
|
|
|
|
func dup2Stderr(f *os.File) error {
|
|
return nil
|
|
}
|