]> arthur.barton.de Git - netatalk.git/commitdiff
Fix respawn throttling. Search for empty slo was testing the wrong variable
authorfranklahm <franklahm>
Tue, 26 May 2009 07:16:56 +0000 (07:16 +0000)
committerfranklahm <franklahm>
Tue, 26 May 2009 07:16:56 +0000 (07:16 +0000)
etc/cnid_dbd/cnid_metad.c

index 375ab1da9e72f28480fa910a120ff1da621b60dc..324505ca162524fa563c15d7622192a70f0cda28 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: cnid_metad.c,v 1.10 2009-05-20 10:36:09 franklahm Exp $
+ * $Id: cnid_metad.c,v 1.11 2009-05-26 07:16:56 franklahm Exp $
  *
  * Copyright (C) Joerg Lenneis 2003
  * All Rights Reserved.  See COPYING.
@@ -226,7 +226,7 @@ static int maybe_start_dbd(char *dbdpn, char *dbdir, char *usockfn)
     if (!up) {
         /* find an empty slot */
         for (i = 0; i < MAXVOLS; i++) {
-            if ( !srv[i].pid ) {
+            if ( !srv[i].name ) {
                 up = &srv[i];
                 up->tm = t;
                 up->count = 0;