In Electron, the renderer process's pid was exposed by
processId = require('remote').getCurrentWindow().getProcessId()
which, however, is no longer valid in recent releases (1.4.x, 1.5.x, 1.6.x).
Is there any other way to get the pid of the renderer process, i.e. the pid for the Windows ?