Erlang/OTP Forums

Author Message

<  Erlang patches mailing list  ~  Fix epmd's dbg_perror() output

Guest
Posted: Wed Nov 17, 2010 3:45 pm Reply with quote
Guest
When epmd prints an error message via dbg_perror(), the dbg_gen_printf()
function is supposed to append the error message which corresponds to
the current errno value. The following commit fixes the problem that
errno has been reset to zero (by erts_snprintf()) before it is used:

git fetch git://github.com/weiss/otp.git fix-epmd-perror

The problem can easily be reproduced by executing e.g.

epmd -port 42

as an unprivileged user. Without the patch, this will spit out something
along the lines of:

epmd: Wed Nov 17 16:44:22 2010: failed to bind socket: Success

Holger

________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org

Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum