diff options
author | xuming <[email protected]> | 2016-04-07 15:06:22 +0800 |
---|---|---|
committer | Zandra <[email protected]> | 2016-04-26 16:26:01 +0200 |
commit | 77bbf2f1412dd75add960ca3208a9eba9f6f36d6 (patch) | |
tree | 61c98d18f2ce7fcb10880afe122323c77eb3693d | |
parent | 42a1166b47721cd444dbe8c70a04125d842a27c9 (diff) | |
download | otp-77bbf2f1412dd75add960ca3208a9eba9f6f36d6.tar.gz otp-77bbf2f1412dd75add960ca3208a9eba9f6f36d6.tar.bz2 otp-77bbf2f1412dd75add960ca3208a9eba9f6f36d6.zip |
Fix global_group.erl
-rw-r--r-- | lib/kernel/src/global_group.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kernel/src/global_group.erl b/lib/kernel/src/global_group.erl index e71f83f9d3..8ac0bd9551 100644 --- a/lib/kernel/src/global_group.erl +++ b/lib/kernel/src/global_group.erl @@ -692,7 +692,7 @@ handle_cast({registered_names, User}, S) -> handle_cast({registered_names_res, Result, Pid, From}, S) -> % io:format(">>>>> registered_names_res Result ~p~n",[Result]), unlink(Pid), - exit(Pid, normal), + Pid ! kill, Wait = get(registered_names), NewWait = lists:delete({Pid, From},Wait), put(registered_names, NewWait), @@ -718,7 +718,7 @@ handle_cast({send_res, Result, Name, Msg, Pid, From}, S) -> ToPid ! Msg end, unlink(Pid), - exit(Pid, normal), + Pid ! kill, Wait = get(send), NewWait = lists:delete({Pid, From, Name, Msg},Wait), put(send, NewWait), @@ -748,7 +748,7 @@ handle_cast({find_name_res, Result, Pid, From}, S) -> % io:format(">>>>> find_name_res Result ~p~n",[Result]), % io:format(">>>>> find_name_res get() ~p~n",[get()]), unlink(Pid), - exit(Pid, normal), + Pid ! kill, Wait = get(whereis_name), NewWait = lists:delete({Pid, From},Wait), put(whereis_name, NewWait), |