aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc/win32/port_entry.c
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2012-08-27 15:03:54 +0200
committerFredrik Gustafsson <[email protected]>2012-08-27 15:03:54 +0200
commite6b62480201b744bbac2d7b07618202c40e2912c (patch)
treedddd5d0e4e670bc120d709737eeb53e90acca5e8 /erts/etc/win32/port_entry.c
parentc6fc61ffab426cc7b391eb903e7942bda809a230 (diff)
parent03985084e42e262bac1b7c48a97c31db97348f1d (diff)
downloadotp-e6b62480201b744bbac2d7b07618202c40e2912c.tar.gz
otp-e6b62480201b744bbac2d7b07618202c40e2912c.tar.bz2
otp-e6b62480201b744bbac2d7b07618202c40e2912c.zip
Merge branch 'jkl/erlsrv-graceful-shutdown/OTP-10228' into maint
* jkl/erlsrv-graceful-shutdown/OTP-10228: erlsrv: gracefully stop emulator on Windows shutdown
Diffstat (limited to 'erts/etc/win32/port_entry.c')
-rw-r--r--erts/etc/win32/port_entry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/etc/win32/port_entry.c b/erts/etc/win32/port_entry.c
index 49b5ad2f34..9c3e750cbc 100644
--- a/erts/etc/win32/port_entry.c
+++ b/erts/etc/win32/port_entry.c
@@ -45,6 +45,8 @@ extern void mainCRTStartup(void);
BOOL WINAPI erl_port_default_handler(DWORD ctrl){
if(ctrl == CTRL_LOGOFF_EVENT)
return TRUE;
+ if(ctrl == CTRL_SHUTDOWN_EVENT)
+ return TRUE;
return FALSE;
}