# HG changeset patch # User Jun Wu # Date 2016-12-23 16:16:44 # Node ID b83bddfc8048ba722873b8d41afbe09c36396c3a # Parent 112915e9a363283915a102e0fa7fdbfa9e9bf343 chg: remove sockdirfd See the previous patch for the reason. diff --git a/contrib/chg/chg.c b/contrib/chg/chg.c --- a/contrib/chg/chg.c +++ b/contrib/chg/chg.c @@ -35,22 +35,16 @@ struct cmdserveropts { char redirectsockname[UNIX_PATH_MAX]; size_t argsize; const char **args; - int sockdirfd; }; static void initcmdserveropts(struct cmdserveropts *opts) { memset(opts, 0, sizeof(struct cmdserveropts)); - opts->sockdirfd = -1; } static void freecmdserveropts(struct cmdserveropts *opts) { free(opts->args); opts->args = NULL; opts->argsize = 0; - if (opts->sockdirfd >= 0) { - close(opts->sockdirfd); - opts->sockdirfd = -1; - } } /*