tdb2: check pid before unlock.
[ccan] / ccan / tdb2 / test / run-fork-test.c
index ff1caa06e0f081f50e7f669feee24f23ea00a2d8..e9813e0a0f01051565a280a825dfa34ef9f50705 100644 (file)
@@ -85,10 +85,10 @@ int main(int argc, char *argv[])
                                return 2;
 
                        tdb_chainunlock(tdb, key);
-                       if (tap_log_messages != 2)
+                       if (tap_log_messages != 3)
                                return 3;
                        tdb_close(tdb);
-                       if (tap_log_messages != 2)
+                       if (tap_log_messages != 3)
                                return 4;
                        return 0;
                }