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/kernel/src/file_server.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/kernel/src/file_server.erl')
-rw-r--r-- | lib/kernel/src/file_server.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/kernel/src/file_server.erl b/lib/kernel/src/file_server.erl index 49ec6f96cc..d036dbb516 100644 --- a/lib/kernel/src/file_server.erl +++ b/lib/kernel/src/file_server.erl @@ -317,8 +317,7 @@ do_start_slave(start, Filer, Name) -> SlaveMonitor = erlang:monitor(process, Slave), receive {started, Token} -> - erlang:demonitor(SlaveMonitor), - receive {'DOWN', SlaveMonitor, _, _, _} -> ok after 0 -> ok end, + erlang:demonitor(SlaveMonitor, [flush]), {ok, Slave}; {'DOWN', SlaveMonitor, _, _, Reason} -> exit(Reason) |