aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/win32/sys.c
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2012-12-06 14:58:48 +0100
committerErlang/OTP <[email protected]>2012-12-06 14:58:48 +0100
commit99e66ce7f6bd42a380fc474f49af3130922ee11f (patch)
tree507cf7287a8ed2b076769b244954cc21e229b53d /erts/emulator/sys/win32/sys.c
parent2eb32af0fdd74bb4d61f952fbd96e548bb916eb1 (diff)
parent7d926758c91abc7008dd06a2a944e2a17b9b0e85 (diff)
downloadotp-99e66ce7f6bd42a380fc474f49af3130922ee11f.tar.gz
otp-99e66ce7f6bd42a380fc474f49af3130922ee11f.tar.bz2
otp-99e66ce7f6bd42a380fc474f49af3130922ee11f.zip
Merge branch 'egil/fix-crashdump-default/OTP-10602' into maint-r15
* egil/fix-crashdump-default/OTP-10602: erts: Change default of erl_crash.dump
Diffstat (limited to 'erts/emulator/sys/win32/sys.c')
-rwxr-xr-xerts/emulator/sys/win32/sys.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/erts/emulator/sys/win32/sys.c b/erts/emulator/sys/win32/sys.c
index 50f6219374..578536ed08 100755
--- a/erts/emulator/sys/win32/sys.c
+++ b/erts/emulator/sys/win32/sys.c
@@ -255,8 +255,7 @@ void erl_sys_args(int* argc, char** argv)
#endif
}
-void
-erts_sys_prepare_crash_dump(int secs)
+int erts_sys_prepare_crash_dump(int secs)
{
Port *heart_port;
Eterm heap[3];
@@ -271,10 +270,14 @@ erts_sys_prepare_crash_dump(int secs)
/* send to heart port, CMD = 8, i.e. prepare crash dump =o */
erts_write_to_port(NIL, heart_port, list);
+
+ return 1;
}
/* Windows - free file descriptors are hopefully available */
/* Alarm not used on windows */
+
+ return 0;
}
static void