diff options
author | Tim Watson <tim@rabbitmq.com> | 2012-11-30 10:55:31 +0000 |
---|---|---|
committer | Tim Watson <tim@rabbitmq.com> | 2012-11-30 10:55:31 +0000 |
commit | dcb5df1ee084f3c158812d480e469ae856115dc6 (patch) | |
tree | 99c900a76e5b7aa4e2ff54cf6dc04f80d43cc11f | |
parent | a8139d50954a567b3f2ad33fb34a04b32bf9cf90 (diff) | |
download | rabbitmq-server-dcb5df1ee084f3c158812d480e469ae856115dc6.tar.gz |
oops - we mean 'not is_permanent' here
-rw-r--r-- | src/supervisor2.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/supervisor2.erl b/src/supervisor2.erl index b1a4a6c1..251d0d51 100644 --- a/src/supervisor2.erl +++ b/src/supervisor2.erl @@ -1142,7 +1142,7 @@ monitor_dynamic_children(#child{restart_type=RType}, Dynamics) -> case monitor_child(P) of ok -> {?SETS:add_element(P, Pids), EStack}; - {error, normal} when ?is_permanent(RType) -> + {error, normal} when not ?is_permanent(RType) -> {Pids, EStack}; {error, Reason} -> {Pids, ?DICT:append(Reason, P, EStack)} @@ -1181,7 +1181,7 @@ wait_dynamic_children(#child{restart_type=RType} = Child, Pids, Sz, wait_dynamic_children(Child, ?SETS:del_element(Pid, Pids), Sz-1, TRef, EStack); - {'DOWN', _MRef, process, Pid, normal} when ?is_permanent(RType) -> + {'DOWN', _MRef, process, Pid, normal} when not ?is_permanent(RType) -> wait_dynamic_children(Child, ?SETS:del_element(Pid, Pids), Sz-1, TRef, EStack); |