Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern brain-oh in last. test logsoftc.sc_pgid, not p.
details: https://anonhg.NetBSD.org/src/rev/45b876305c9c
branches: trunk
changeset: 486776:45b876305c9c
user: jhawk <jhawk%NetBSD.org@localhost>
date: Sun May 28 18:31:13 2000 +0000
description:
brain-oh in last. test logsoftc.sc_pgid, not p.
diffstat:
sys/kern/subr_log.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r c38776d3915e -r 45b876305c9c sys/kern/subr_log.c
--- a/sys/kern/subr_log.c Sun May 28 18:17:59 2000 +0000
+++ b/sys/kern/subr_log.c Sun May 28 18:31:13 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_log.c,v 1.19 2000/05/28 18:17:07 jhawk Exp $ */
+/* $NetBSD: subr_log.c,v 1.20 2000/05/28 18:31:13 jhawk Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -220,7 +220,8 @@
if (logsoftc.sc_state & LOG_ASYNC) {
if (logsoftc.sc_pgid < 0)
gsignal(-logsoftc.sc_pgid, SIGIO);
- else if (p && (p = pfind(logsoftc.sc_pgid)) != NULL)
+ else if (logsoftc.sc_pgid > 0 &&
+ (p = pfind(logsoftc.sc_pgid)) != NULL)
psignal(p, SIGIO);
}
if (logsoftc.sc_state & LOG_RDWAIT) {
Home |
Main Index |
Thread Index |
Old Index