Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
unset env after launch ignore sighup
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Jan 4, 2018
1 parent 44f6427 commit 161fb4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,8 @@ func main() {

if os.Getenv("IGNORE_SIGHUP") == "true" {
fmt.Println("Enter into daemon mode")
os.Unsetenv("IGNORE_SIGHUP")

f, err := os.Create("/sdcard/atx-agent.log")
if err != nil {
panic(err)
Expand Down

0 comments on commit 161fb4d

Please sign in to comment.