diff options
author | Loïc Hoguin <[email protected]> | 2013-04-05 13:06:24 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-04-05 13:06:24 +0200 |
commit | c82e9fad33302ff24fdddbd50f110c06d4eb81d4 (patch) | |
tree | 710881076aed3f2a387acee1a70444a0515c51fb /lib/stdlib/src/dets.erl | |
parent | e72043e3519cb14aabf461849eba959b97e07410 (diff) | |
download | otp-c82e9fad33302ff24fdddbd50f110c06d4eb81d4.tar.gz otp-c82e9fad33302ff24fdddbd50f110c06d4eb81d4.tar.bz2 otp-c82e9fad33302ff24fdddbd50f110c06d4eb81d4.zip |
Use erlang:demonitor(Ref, [flush]) where applicable
Diffstat (limited to 'lib/stdlib/src/dets.erl')
-rw-r--r-- | lib/stdlib/src/dets.erl | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/stdlib/src/dets.erl b/lib/stdlib/src/dets.erl index 45aef0ea80..50812cc532 100644 --- a/lib/stdlib/src/dets.erl +++ b/lib/stdlib/src/dets.erl @@ -1246,13 +1246,8 @@ req(Proc, R) -> {'DOWN', Ref, process, Proc, _Info} -> badarg; {Proc, Reply} -> - erlang:demonitor(Ref), - receive - {'DOWN', Ref, process, Proc, _Reason} -> - Reply - after 0 -> - Reply - end + erlang:demonitor(Ref, [flush]), + Reply end. %% Inlined. |