##// END OF EJS Templates
chg: check lockfd at freecmdserveropts...
Jun Wu -
r28853:d11548b4 default
parent child Browse files
Show More
@@ -49,6 +49,7 b' static void freecmdserveropts(struct cmd'
49 free(opts->args);
49 free(opts->args);
50 opts->args = NULL;
50 opts->args = NULL;
51 opts->argsize = 0;
51 opts->argsize = 0;
52 assert(opts->lockfd == -1 && "should be closed by unlockcmdserver()");
52 if (opts->sockdirfd != AT_FDCWD) {
53 if (opts->sockdirfd != AT_FDCWD) {
53 close(opts->sockdirfd);
54 close(opts->sockdirfd);
54 opts->sockdirfd = AT_FDCWD;
55 opts->sockdirfd = AT_FDCWD;
General Comments 0
You need to be logged in to leave comments. Login now