svn commit: r277577 - stable/10/usr.sbin/ngctl
Gleb Smirnoff
glebius at FreeBSD.org
Fri Jan 23 17:49:17 UTC 2015
Author: glebius
Date: Fri Jan 23 17:49:16 2015
New Revision: 277577
URL: https://svnweb.freebsd.org/changeset/base/277577
Log:
Merge r277258: plug mutex leak in ngctl(8).
Modified:
stable/10/usr.sbin/ngctl/main.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/usr.sbin/ngctl/main.c
==============================================================================
--- stable/10/usr.sbin/ngctl/main.c Fri Jan 23 17:41:34 2015 (r277576)
+++ stable/10/usr.sbin/ngctl/main.c Fri Jan 23 17:49:16 2015 (r277577)
@@ -324,8 +324,10 @@ DoInteractive(void)
history(hist, &hev, H_ENTER, buf);
pthread_kill(monitor, SIGUSR1);
pthread_mutex_lock(&mutex);
- if (DoParseCommand(buf) == CMDRTN_QUIT)
+ if (DoParseCommand(buf) == CMDRTN_QUIT) {
+ pthread_mutex_unlock(&mutex);
break;
+ }
pthread_cond_signal(&cond);
pthread_mutex_unlock(&mutex);
}
More information about the svn-src-stable
mailing list