diff options
author | Björn-Egil Dahlberg <[email protected]> | 2012-10-24 14:22:36 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2012-10-24 14:22:36 +0200 |
commit | bb915519aa16f6410b19c6f868805b47717f11fa (patch) | |
tree | 02171f62ff06e14586a803b6a69c885978137cd8 /lib/kernel/src/heart.erl | |
parent | 49b7b5d5158f89fb4bee068719d000d6c753fdcd (diff) | |
parent | d5733bc3e34449affde2594d85b905c8ab440d42 (diff) | |
download | otp-bb915519aa16f6410b19c6f868805b47717f11fa.tar.gz otp-bb915519aa16f6410b19c6f868805b47717f11fa.tar.bz2 otp-bb915519aa16f6410b19c6f868805b47717f11fa.zip |
Merge branch 'maint'
Conflicts:
erts/etc/common/heart.c
Diffstat (limited to 'lib/kernel/src/heart.erl')
-rw-r--r-- | lib/kernel/src/heart.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/kernel/src/heart.erl b/lib/kernel/src/heart.erl index 28452a377e..de287bfa43 100644 --- a/lib/kernel/src/heart.erl +++ b/lib/kernel/src/heart.erl @@ -42,6 +42,7 @@ -define(CLEAR_CMD, 5). -define(GET_CMD, 6). -define(HEART_CMD, 7). +-define(PREPARING_CRASH, 8). % Used in beam vm -define(TIMEOUT, 5000). -define(CYCLE_TIMEOUT, 10000). @@ -130,6 +131,8 @@ start_portprogram() -> Port when is_port(Port) -> case wait_ack(Port) of ok -> + %% register port so the vm can find it if need be + register(heart_port, Port), {ok, Port}; {error, Reason} -> report_problem({{port_problem, Reason}, |