mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
d61494db68
Signed-off-by: Andrea Barisani <andrea@inversepath.com>
24 lines
334 B
Go
24 lines
334 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build wasm || plan9 || tamago
|
|
|
|
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
|
|
}
|