nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b215c8
)
lib/core: add `Sys::pid`
author
Jean Privat
<jean@pryen.org>
Wed, 25 May 2016 19:33:34 +0000
(15:33 -0400)
committer
Jean Privat
<jean@pryen.org>
Wed, 25 May 2016 19:33:34 +0000
(15:33 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
lib/core/exec.nit
patch
|
blob
|
history
diff --git
a/lib/core/exec.nit
b/lib/core/exec.nit
index
10c5374
..
76d9d63
100644
(file)
--- a/
lib/core/exec.nit
+++ b/
lib/core/exec.nit
@@
-324,6
+324,9
@@
redef class Sys
do
return command.to_cstring.system
end
+
+ # The pid of the program
+ fun pid: Int `{ return getpid(); `}
end
redef class NativeString