tests: Wait for server start in auth/superuser-t
[openafs.git] / tests / common / servers.c
index 24b2bee..70dd366 100644 (file)
@@ -90,6 +90,7 @@ afstest_StopServer(pid_t serverPid)
 
 int
 afstest_StartTestRPCService(const char *configPath,
+                           pid_t signal_pid,
                            u_short port,
                            u_short serviceId,
                            afs_int32 (*proc) (struct rx_call *))
@@ -112,6 +113,10 @@ afstest_StartTestRPCService(const char *configPath,
        return -1;
     }
 
+    if (signal_pid != 0) {
+       kill(signal_pid, SIGUSR1);
+    }
+
     afsconf_BuildServerSecurityObjects(dir, &classes, &numClasses);
     service = rx_NewService(0, serviceId, "test", classes, numClasses,
                             proc);