Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
luvit.lua: retrieve PID directly from native.getpid()
we don't need to export getpid() to process when we cache the current
pid in process.pid
  • Loading branch information
mkandrashoff authored and Brandon Philips committed May 29, 2012
1 parent 17fda17 commit 3288560
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/luvit/luvit.lua
Expand Up @@ -134,8 +134,7 @@ process.env = setmetatable({}, {
})
--Retrieve PID
process.getpid = native.getpid
process.pid = process.getpid()
process.pid = native.getpid()
-- Copy date and time over from lua os module into luvit os module
local OLD_OS = require('os')
Expand Down

0 comments on commit 3288560

Please sign in to comment.