mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
ipn/ipnserver: add knob to disable babysitter
This commit is contained in:
parent
5d96ecd5e6
commit
acade77c86
@ -724,6 +724,10 @@ func BabysitProc(ctx context.Context, args []string, logf logger.Logf) {
|
|||||||
// pipe. We'll make a new one when we restart the subproc.
|
// pipe. We'll make a new one when we restart the subproc.
|
||||||
wStdin.Close()
|
wStdin.Close()
|
||||||
|
|
||||||
|
if os.Getenv("TS_DEBUG_RESTART_CRASHED") == "0" {
|
||||||
|
log.Fatalf("Process ended.")
|
||||||
|
}
|
||||||
|
|
||||||
if time.Since(startTime) < 60*time.Second {
|
if time.Since(startTime) < 60*time.Second {
|
||||||
bo.BackOff(ctx, fmt.Errorf("subproc early exit: %v", err))
|
bo.BackOff(ctx, fmt.Errorf("subproc early exit: %v", err))
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user