1
0
mirror of https://github.com/rancher/os.git synced 2025-07-13 14:44:03 +00:00

Merge pull request #700 from ibuildthecloud/close

Close file in wait for network
This commit is contained in:
Darren Shepherd 2015-12-22 14:53:34 -07:00
commit 7252a543f2

View File

@ -73,8 +73,10 @@ func Main() {
log.Error(err)
}
}
if _, err := os.Create(NETWORK_DONE); err != nil {
if f, err := os.Create(NETWORK_DONE); err != nil {
log.Error(err)
} else {
f.Close()
}
sendTerm(WAIT_FOR_NETWORK)
select {}