aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/global.h
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-01-12 17:30:45 +0100
committerBjörn-Egil Dahlberg <[email protected]>2015-01-13 16:59:10 +0100
commitd373dc49ae4c8a2d27dde23564bcaf2642cc46e5 (patch)
tree4c55a853ab223e731eab6e3603788e6d3bd56afb /erts/emulator/beam/global.h
parentaf87b1c3d4897840d8247589a88d3611106ecedc (diff)
downloadotp-d373dc49ae4c8a2d27dde23564bcaf2642cc46e5.tar.gz
otp-d373dc49ae4c8a2d27dde23564bcaf2642cc46e5.tar.bz2
otp-d373dc49ae4c8a2d27dde23564bcaf2642cc46e5.zip
erts: Extend driver interface with emergency_close
The intention of this callback is to close all sockets associated to a port. It is closed only on crashdumps. This will currently only be used for the epmd port.
Diffstat (limited to 'erts/emulator/beam/global.h')
-rw-r--r--erts/emulator/beam/global.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/global.h b/erts/emulator/beam/global.h
index 891046a8b5..d25daaf7b8 100644
--- a/erts/emulator/beam/global.h
+++ b/erts/emulator/beam/global.h
@@ -160,6 +160,7 @@ struct erts_driver_t_ {
void (*ready_async)(ErlDrvData drv_data, ErlDrvThreadData thread_data); /* Might be NULL */
void (*process_exit)(ErlDrvData drv_data, ErlDrvMonitor *monitor);
void (*stop_select)(ErlDrvEvent event, void*); /* Might be NULL */
+ void (*emergency_close)(ErlDrvData drv_data); /* Might be NULL */
};
extern erts_driver_t *driver_list;