aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/unix/sys.c
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2012-04-17 16:15:11 +0200
committerPatrik Nyblom <[email protected]>2012-04-17 16:19:49 +0200
commitb0534e7f668f12b0d48e139c5ddbfcd85eaff4ce (patch)
treee4e6afa0a9a395aec7651c0d56c0f782163c1d5f /erts/emulator/sys/unix/sys.c
parentf1a49c45e4b2ec746407fd777ba31fec6cab118e (diff)
parentd6d38a42650880bcd6c1f93c5797958857e82d60 (diff)
downloadotp-b0534e7f668f12b0d48e139c5ddbfcd85eaff4ce.tar.gz
otp-b0534e7f668f12b0d48e139c5ddbfcd85eaff4ce.tar.bz2
otp-b0534e7f668f12b0d48e139c5ddbfcd85eaff4ce.zip
Merge branch 'pg/r15/add-os-pid-to-port-info' into maint
* pg/r15/add-os-pid-to-port-info: tests: Remove line macro from port_bif_SUITE Correct documentation, erl_bif_types and dialyzer tests Make port_info(Port,os_pid) work on Windows Extend erlang:port_info/1,2 to show the OS pid of a spawned process OTP-10057
Diffstat (limited to 'erts/emulator/sys/unix/sys.c')
-rw-r--r--erts/emulator/sys/unix/sys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/sys/unix/sys.c b/erts/emulator/sys/unix/sys.c
index f94e0f2296..bf69f3bf90 100644
--- a/erts/emulator/sys/unix/sys.c
+++ b/erts/emulator/sys/unix/sys.c
@@ -1163,6 +1163,8 @@ static int set_driver_data(int port_num,
report_exit_list = report_exit;
}
+ erts_port[port_num].os_pid = pid;
+
if (read_write & DO_READ) {
driver_data[ifd].packet_bytes = packet_bytes;
driver_data[ifd].port_num = port_num;