[erlang-bugs] epmd floods my errors.log

Michael Santos michael.santos@REDACTED
Tue Aug 3 16:32:38 CEST 2010


On Tue, Aug 03, 2010 at 06:05:41PM +0400, Sergey Samokhin wrote:
> > Is the pid of the epmd process changing? Do you have more than one
> > epmd running? Check ps and netstat for port 4369.
> 
> pid of epmd isn't changed and I have only one epmd running.
> 
> Every "erl -sname foo -run init stop" adds one "epmd running - daemon
> = 1" to the errors.log
> 
> Steps to reproduce are quite easy (have just tested on clear virtual machine)
> 
> 1. Install Erlang R13B04
> 2. Do "erl -sname foo -run init stop" N times
> 3. Take a look at "sudo cat /var/log/errors.log"; you will see N "epmd
> running - daemon = 1" messages

Thanks! I understand the issue now.

You suggested in your first email using LOG_INFO, but do you think this
patch would be sufficient? epmd will log (at LOG_ERR) only when one or
more "-d" flags are passed.


diff --git a/erts/epmd/src/epmd.c b/erts/epmd/src/epmd.c
index 6ddf30e..9c2ce06 100644
--- a/erts/epmd/src/epmd.c
+++ b/erts/epmd/src/epmd.c
@@ -237,5 +237,5 @@ int main(int argc, char** argv)
 	    usage(g);
     }
-    dbg_printf(g,0,"epmd running - daemon = %d",g->is_daemon);
+    dbg_printf(g,1,"epmd running - daemon = %d",g->is_daemon);
 
 #ifndef NO_SYSCONF





More information about the erlang-bugs mailing list