]> andersk Git - moira.git/commitdiff
Add some strategic sleep()'s.
authorzacheiss <zacheiss>
Wed, 2 May 2001 21:28:55 +0000 (21:28 +0000)
committerzacheiss <zacheiss>
Wed, 2 May 2001 21:28:55 +0000 (21:28 +0000)
incremental/winad/winad.c

index 00a9cf5a37357fe7b28a2591c436928835147faa..33cc42bd03dfc22c22dc724b87caf795c7b34557 100755 (executable)
@@ -572,6 +572,7 @@ void do_list(LDAP *ldap_handle, char *dn_path, char *ldap_hostname,
     {
       com_err(whoami, 0, "Creating group %s", after[L_NAME]);
 
+      sleep(1);
       av[0] = after[L_NAME];
       call_args[0] = (char *)ldap_handle;
       call_args[1] = dn_path;
@@ -597,6 +598,8 @@ void do_list(LDAP *ldap_handle, char *dn_path, char *ldap_hostname,
 
       if (afterc == 0)
         goto cleanup;
+      sleep(1);
+
       member_base = NULL;
       if (!(rc = mr_query("get_end_members_of_list", 1, av, member_list_build,
                           call_args)))
@@ -682,6 +685,8 @@ void do_member(LDAP *ldap_handle, char *dn_path, char *ldap_hostname,
           sid_base = NULL;
         }
       member_base = NULL;
+      sleep(1);
+
       if (!(rc = mr_query("get_end_members_of_list", 1, av, member_list_build,
                           call_args)))
         {
@@ -2958,6 +2963,7 @@ void expand_groups(LDAP *ldap_handle, char *dn_path, char *group_name)
       ptr = group_base;
       while (ptr != NULL)
         {
+          sleep(1);
           av[0] = "RLIST";
           av[1] = ptr->member;
           call_args[0] = (char *)ldap_handle;
@@ -2982,6 +2988,7 @@ void expand_groups(LDAP *ldap_handle, char *dn_path, char *group_name)
   ptr = group_base;
   while (ptr != NULL)
     {
+      sleep(1);
       member_base = NULL;
       sid_base = NULL;
       sid_ptr = &sid_base;
@@ -3007,6 +3014,7 @@ void expand_groups(LDAP *ldap_handle, char *dn_path, char *group_name)
           linklist_free(sid_base);
           sid_base = NULL;
         }
+      sleep(1);
       member_base = NULL;
       if (!(rc = mr_query("get_end_members_of_list", 1, av, member_list_build,
                           call_args)))
This page took 0.959104 seconds and 5 git commands to generate.