Diff between 93850c827d549115f0396da42c4a0529feeed1a3 and 7bcd32e67e9388c49212e5dd5dd431c9ec079eb0

Changed Files

File Additions Deletions Status
tools/test-runner.c +3 -3 modified

Full Patch

diff --git a/tools/test-runner.c b/tools/test-runner.c
index 1f1a8c3..945a16a 100644
--- a/tools/test-runner.c
+++ b/tools/test-runner.c
@@ -452,13 +452,13 @@ static pid_t start_dbus_daemon(void)
 
 		if (!stat("/run/dbus/system_bus_socket", &st)) {
 			printf("Found D-Bus daemon socket\n");
-			break;
+			return pid;
 		}
 
-		usleep(25 * 1000);
+		sleep(1);
 	}
 
-	return pid;
+	return -1;
 }
 
 static const char *daemon_table[] = {