diff options
author | Siri Hansen <[email protected]> | 2011-04-01 16:36:08 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2011-05-12 16:21:07 +0200 |
commit | de5377beb78d2fc0f0bea964fb9244722492a448 (patch) | |
tree | 0c0817bce609c7b66a2816be90793c628c73699b /lib | |
parent | 99033bc070be6325ccbbb0a3e7e69396c8a30ec9 (diff) | |
download | otp-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')
-rw-r--r-- | lib/sasl/src/rb.erl | 3 |
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) -> |