mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2026-02-01 16:27:26 +00:00
Fix example to use component names in example service group.
(Logical change 1.21) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@54 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
9dbb8ba891
commit
ccd9d2d7e0
@ -259,7 +259,7 @@ int main (void) {
|
||||
exit (1);
|
||||
}
|
||||
|
||||
setSanameT (&compName, "raidupdate1");
|
||||
setSanameT (&compName, "comp_b_in_su_y");
|
||||
|
||||
result = saAmfComponentRegister (&handle, &compName, NULL);
|
||||
printf ("register result is %d (should be 1)\n", result);
|
||||
@ -269,12 +269,18 @@ int main (void) {
|
||||
sleep (5);
|
||||
|
||||
printf ("Finalizing handle\n");
|
||||
|
||||
saAmfComponentUnregister (&handle, &compName, NULL);
|
||||
|
||||
saAmfFinalize (&handle);
|
||||
|
||||
printf ("Handle Finalized\n");
|
||||
sleep (1); /* this sleep isn't really necessary */
|
||||
result = saAmfInitialize (&handle, &amfCallbacks, &version);
|
||||
result = saAmfComponentRegister (&handle, &compName, NULL);
|
||||
pthread_create (&dispatch_thread, NULL, th_dispatch, &handle);
|
||||
sleep (10);
|
||||
// saAmfFinalize (&handle);
|
||||
|
||||
exit (0);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user