diff options
author | Björn-Egil Dahlberg <[email protected]> | 2015-01-13 17:04:00 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-01-23 15:08:23 +0100 |
commit | 1520bca342e8433089841d2c79d3d862d06479e5 (patch) | |
tree | 999ab139314ae464b7e897a3e1e17c55fa359dee /erts | |
parent | 5f036bc287f325b3367f8437997534c44812078f (diff) | |
download | otp-1520bca342e8433089841d2c79d3d862d06479e5.tar.gz otp-1520bca342e8433089841d2c79d3d862d06479e5.tar.bz2 otp-1520bca342e8433089841d2c79d3d862d06479e5.zip |
erts: Don't lookup invalid port for crashdump handling
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/beam/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c index 3316654790..2ac27f024e 100644 --- a/erts/emulator/beam/io.c +++ b/erts/emulator/beam/io.c @@ -7558,7 +7558,7 @@ Port *erts_get_heart_port(void) if (!port) continue; /* only examine undead or alive ports */ - if (erts_atomic32_read_nob(&port->state) & ERTS_PORT_SFLGS_DEAD) + if (erts_atomic32_read_nob(&port->state) & ERTS_PORT_SFLGS_INVALID_DRIVER_LOOKUP) continue; /* immediate atom compare */ reg = port->common.u.alive.reg; @@ -7580,7 +7580,7 @@ void erts_emergency_close_ports(void) if (!port) continue; /* only examine undead or alive ports */ - if (erts_atomic32_read_nob(&port->state) & ERTS_PORT_SFLGS_DEAD) + if (erts_atomic32_read_nob(&port->state) & ERTS_PORT_SFLGS_INVALID_DRIVER_LOOKUP) continue; /* emergency close socket */ |