diff options
author | Hans Bolinder <[email protected]> | 2014-03-20 16:01:54 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2014-03-20 16:01:54 +0100 |
commit | eb44d0b913a97bf460ba890b04900096f79dcd53 (patch) | |
tree | 16eac06dc26ff313b4a7c7bf6e37bec1eacccaef /lib/debugger | |
parent | 73af231f1a22083031df49ba19fdfd4f6b434a10 (diff) | |
parent | e2733e0dfe107e2f48c083841ffd128bcbf0abef (diff) | |
download | otp-eb44d0b913a97bf460ba890b04900096f79dcd53.tar.gz otp-eb44d0b913a97bf460ba890b04900096f79dcd53.tar.bz2 otp-eb44d0b913a97bf460ba890b04900096f79dcd53.zip |
Merge branch 'hb/spec_related_fixes'
* hb/spec_related_fixes:
test_server: Fix a Dialyzer warning
Correct the contract of io:getopts()
Fix some Dialyzer warnings
Diffstat (limited to 'lib/debugger')
-rw-r--r-- | lib/debugger/src/dbg_iload.erl | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/debugger/src/dbg_iload.erl b/lib/debugger/src/dbg_iload.erl index 266cf239dd..ad05a7c529 100644 --- a/lib/debugger/src/dbg_iload.erl +++ b/lib/debugger/src/dbg_iload.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1998-2010. All Rights Reserved. +%% Copyright Ericsson AB 1998-2014. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -42,18 +42,21 @@ load_mod(Mod, File, Binary, Db) -> Flag = process_flag(trap_exit, true), - Pid = spawn_link(fun () -> load_mod1(Mod, File, Binary, Db) end), + Pid = spawn_link(load_mod1(Mod, File, Binary, Db)), receive {'EXIT', Pid, What} -> process_flag(trap_exit, Flag), What end. --spec load_mod1(atom(), file:filename(), binary(), ets:tid()) -> no_return(). +-spec load_mod1(atom(), file:filename(), binary(), ets:tid()) -> + fun(() -> no_return()). load_mod1(Mod, File, Binary, Db) -> - store_module(Mod, File, Binary, Db), - exit({ok, Mod}). + fun() -> + store_module(Mod, File, Binary, Db), + exit({ok, Mod}) + end. %%==================================================================== %% Internal functions |