For the latest stable version, please use Emilua API 0.10!

system.getpid

Synopsis

local system = require "system"
system.getpid() -> integer

Description

Returns the process ID of the calling process.