diff options
author | brian <brian@FreeBSD.org> | 1998-08-02 13:01:16 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-08-02 13:01:16 +0000 |
commit | 76039265401440844e2b890ed20a14378596a974 (patch) | |
tree | e7c4bd9ce6ead472c649f3b4021818fec061867f /usr.sbin/ppp/log.c | |
parent | 2916928fb5566f8dfcd8aa8cd86476d568fb9d32 (diff) | |
download | FreeBSD-src-76039265401440844e2b890ed20a14378596a974.zip FreeBSD-src-76039265401440844e2b890ed20a14378596a974.tar.gz |
PR: 7469
Be careful that the current or next prompt in the list
that we're iterating through doesn't get changed by
descriptor_Read().
Diffstat (limited to 'usr.sbin/ppp/log.c')
-rw-r--r-- | usr.sbin/ppp/log.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ppp/log.c b/usr.sbin/ppp/log.c index 0c9c276b..acc76f5 100644 --- a/usr.sbin/ppp/log.c +++ b/usr.sbin/ppp/log.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: log.c,v 1.30 1998/06/15 19:06:15 brian Exp $ + * $Id: log.c,v 1.31 1998/06/15 19:06:48 brian Exp $ */ #include <sys/types.h> @@ -68,6 +68,7 @@ static u_long LogMask = MSK(LogPHASE); static u_long LogMaskLocal = MSK(LogERROR) | MSK(LogALERT) | MSK(LogWARN); static int LogTunno = -1; static struct prompt *promptlist; /* Where to log local stuff */ +int log_PromptListChanged; struct prompt * log_PromptList() @@ -123,6 +124,7 @@ log_UnRegisterPrompt(struct prompt *prompt) break; } LogSetMaskLocal(); + log_PromptListChanged++; } } |