diff options
author | Patrik Nyblom <[email protected]> | 2012-04-18 11:31:27 +0200 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2012-04-18 11:31:27 +0200 |
commit | 00668f8cbae565d482e9ad72a63f846cef8e8071 (patch) | |
tree | 408683cfdc04303c0e9ddeb9340a4d02b6da9254 /erts/emulator/beam/erl_bif_info.c | |
parent | f21ff0941a68ef8bc1097537f4bb503a522a8bf3 (diff) | |
download | otp-00668f8cbae565d482e9ad72a63f846cef8e8071.tar.gz otp-00668f8cbae565d482e9ad72a63f846cef8e8071.tar.bz2 otp-00668f8cbae565d482e9ad72a63f846cef8e8071.zip |
Revert "Extend erlang:port_info/1,2 to show the OS pid of a spawned process"
This reverts commit d4667d383964c1550e0a91d64b674e84f6d07e3b.
This commit was included by mistake, the correct patch will
be merged from maint.
Diffstat (limited to 'erts/emulator/beam/erl_bif_info.c')
-rw-r--r-- | erts/emulator/beam/erl_bif_info.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c index 4dcfe997d4..060a52d220 100644 --- a/erts/emulator/beam/erl_bif_info.c +++ b/erts/emulator/beam/erl_bif_info.c @@ -2765,8 +2765,7 @@ port_info_1(BIF_ALIST_1) am_id, am_connected, am_input, - am_output, - am_os_pid + am_output }; Eterm items[ASIZE(keys)]; Eterm result = NIL; @@ -2823,7 +2822,6 @@ port_info_1(BIF_ALIST_1) ** name String ** input Number of bytes input from port program ** output Number of bytes output to the port program -** os_pid The child's process ID */ BIF_RETTYPE port_info_2(BIF_ALIST_2) @@ -2924,18 +2922,6 @@ static BIF_RETTYPE port_info(Process* p, Eterm portid, Eterm item) hp = HAlloc(p, hsz); res = erts_bld_uint(&hp, NULL, n); } - else if (item == am_os_pid) { - if (prt->os_pid >= 0) { - Uint hsz = 3; - Uint n = prt->os_pid; - (void) erts_bld_uint(NULL, &hsz, n); - hp = HAlloc(p, hsz); - res = erts_bld_uint(&hp, NULL, n); - } else { - hp = HAlloc(p, 3); - res = am_undefined; - } - } else if (item == am_registered_name) { RegProc *reg; reg = prt->reg; |