Attempt to fix the build on Windows
This commit is contained in:
parent
69f3095fac
commit
1eef531259
|
@ -692,7 +692,7 @@ proc run*(node: BeaconNode) =
|
||||||
var gPidFile: string
|
var gPidFile: string
|
||||||
proc createPidFile(filename: string) =
|
proc createPidFile(filename: string) =
|
||||||
createDir splitFile(filename).dir
|
createDir splitFile(filename).dir
|
||||||
writeFile filename, $getCurrentProcessId()
|
writeFile filename, $os_shims.getCurrentProcessId()
|
||||||
gPidFile = filename
|
gPidFile = filename
|
||||||
addQuitProc proc {.noconv.} = removeFile gPidFile
|
addQuitProc proc {.noconv.} = removeFile gPidFile
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue