aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc/src
diff options
context:
space:
mode:
authorMatthias Lang <[email protected]>2010-08-19 15:12:26 +0200
committerPatrik Nyblom <[email protected]>2012-04-17 16:11:26 +0200
commite2277e240790930563b0833854e7bc6a8338cf5c (patch)
tree7cadd3a34cd454ff4b26bfcc2827a6a201520cc7 /erts/doc/src
parentf1a49c45e4b2ec746407fd777ba31fec6cab118e (diff)
downloadotp-e2277e240790930563b0833854e7bc6a8338cf5c.tar.gz
otp-e2277e240790930563b0833854e7bc6a8338cf5c.tar.bz2
otp-e2277e240790930563b0833854e7bc6a8338cf5c.zip
Extend erlang:port_info/1,2 to show the OS pid of a spawned process
When spawning OS (unix) processes with erlang:open_port, store the resulting unix pid so that it can be queried later on using erlang:port_info/1,2.
Diffstat (limited to 'erts/doc/src')
-rw-r--r--erts/doc/src/erlang.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index 0963904b83..2fbfe6eb74 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -3573,6 +3573,10 @@ os_prompt% </pre>
<p><c>Bytes</c> is the total number of bytes written to
the port.</p>
</item>
+ <tag><c>{os_pid, Integer}</c></tag>
+ <item>
+ <p><c>Integer</c> is the OS pid of the spawned process (Unix systems only).</p>
+ </item>
</taglist>
<p>Failure: <c>badarg</c> if <c>Port</c> is not a local port.</p>
</desc>