Skip to content

Commit

Permalink
Run Lantern even if panicwrap fails to fork
Browse files Browse the repository at this point in the history
  • Loading branch information
uaalto committed Sep 3, 2015
1 parent 91e37be commit 46c4fa7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/github.com/getlantern/flashlight/flashlight.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,15 @@ func main() {
if err != nil {
// Something went wrong setting up the panic wrapper. This won't be
// captured by panicwrap
// At this point, continue execution without panicwrap support. There
// are known cases where panicwrap will fail to fork, such as Windows
// GUI app
log.Errorf("Error setting up panic wrapper: %v", err)
}
// If exitStatus >= 0, then we're the parent process.
if exitStatus >= 0 {
os.Exit(exitStatus)
} else {
// If exitStatus >= 0, then we're the parent process.
if exitStatus >= 0 {
os.Exit(exitStatus)
}
}

parseFlags()
Expand Down

0 comments on commit 46c4fa7

Please sign in to comment.