Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/heimdal/dist/kdc avoid busy...



details:   https://anonhg.NetBSD.org/src/rev/04848b2cbc6d
branches:  trunk
changeset: 318554:04848b2cbc6d
user:      spz <spz%NetBSD.org@localhost>
date:      Sun Apr 29 05:36:04 2018 +0000
description:
avoid busy-waiting on a dead child

diffstat:

 crypto/external/bsd/heimdal/dist/kdc/connect.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 556440f10907 -r 04848b2cbc6d crypto/external/bsd/heimdal/dist/kdc/connect.c
--- a/crypto/external/bsd/heimdal/dist/kdc/connect.c    Sun Apr 29 04:28:09 2018 +0000
+++ b/crypto/external/bsd/heimdal/dist/kdc/connect.c    Sun Apr 29 05:36:04 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: connect.c,v 1.2 2017/01/28 21:31:44 christos Exp $     */
+/*     $NetBSD: connect.c,v 1.3 2018/04/29 05:36:04 spz Exp $  */
 
 /*
  * Copyright (c) 1997-2005 Kungliga Tekniska Högskolan
@@ -1193,7 +1193,7 @@
                 break;
             default:
                 for (i=0; i < max_kdcs; i++) {
-                    if (pids[i] == 0) {
+                    if (pids[i] < 1) {
                         pids[i] = pid;
                         break;
                     }



Home | Main Index | Thread Index | Old Index