aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sasl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2011-04-01 16:36:08 +0200
committerSiri Hansen <[email protected]>2011-05-12 16:21:07 +0200
commitde5377beb78d2fc0f0bea964fb9244722492a448 (patch)
tree0c0817bce609c7b66a2816be90793c628c73699b /lib/sasl
parent99033bc070be6325ccbbb0a3e7e69396c8a30ec9 (diff)
downloadotp-de5377beb78d2fc0f0bea964fb9244722492a448.tar.gz
otp-de5377beb78d2fc0f0bea964fb9244722492a448.tar.bz2
otp-de5377beb78d2fc0f0bea964fb9244722492a448.zip
Don't attempt to do supervisor:delete_child for temporary child
After a bug fix supervisor does no longer save childspecs for temporary children. Due to this, all calls to supervisor:delete_child will fail for temporary children. rb:stop is therefore now rewritten to only do supervisor:terminate_child.
Diffstat (limited to 'lib/sasl')
-rw-r--r--lib/sasl/src/rb.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sasl/src/rb.erl b/lib/sasl/src/rb.erl
index 500c795721..5fdb0b1695 100644
--- a/lib/sasl/src/rb.erl
+++ b/lib/sasl/src/rb.erl
@@ -53,8 +53,7 @@ start_link(Options) ->
gen_server:start_link({local, rb_server}, rb, Options, []).
stop() ->
- supervisor:terminate_child(sasl_sup, rb_server),
- supervisor:delete_child(sasl_sup, rb_server).
+ supervisor:terminate_child(sasl_sup, rb_server).
rescan() -> rescan([]).
rescan(Options) ->