[erlang-patches] Allow user to specify the IP address epmd binds to

Holger Weiß <>
Wed Nov 17 10:11:21 CET 2010


* Michael Santos <> [2010-11-16 08:19]:
> On Mon, Nov 15, 2010 at 04:27:05PM +0100, Holger Weiß wrote:
> > This adds an epmd option (and an environment variable) to specify the IP
> > address(es) epmd should listen on:
> > 
> >     git fetch git://github.com/weiss/otp.git epmd-bind-to-address
> 
> +      char *tmp = malloc(strlen(g->addresses) + 1);
> +      char *token;
> +      int loopback_ok = 0;
> +
> +      strcpy(tmp,g->addresses);
> 
> Might want to check if tmp is NULL here and exit if it is.

Indeed, I've amended that into the commit.

(The reason I didn't do that in the first place is that it's not done in
epmd.c either, and my idea was to provide a separate commit which
changes all malloc/realloc calls to use simple wrappers which abort on
error. However, that's not as completely trivial as I initially
thought.)

Thanks, Holger


More information about the erlang-patches mailing list