[Openais] Patch testamf1.c

Hans Feldt (AS/EAB) hans.feldt at ericsson.com
Wed Aug 23 01:43:03 PDT 2006


This patch contains:
1. TRY_AGAIN handling to all (most) AIS calls.
2. An error reporting/handling function: die (...)
3. Signal handlers for:
	INT => finalize
	USR1 => unregister
	USR2 => error report

1 is needed since TRY_AGAIN is received during e.g. Sync and we don't
want the test component to die because of that.

2 is also needed since testamf1 previously returned status codes that
had a meaning on UNIX platforms, they were interpreted wrong by
openais_instantiate.c. Now testamf1 will exit with -1 for errors. 'Man 3
exit' say 1 (EXIT_FAILURE) for errors but that seems to have some other
meaning on Linux.

3 is useful for testing

Regards,
Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testamf1.patch
Type: text/x-patch
Size: 12695 bytes
Desc: testamf1.patch
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20060823/d121e4d0/testamf1-0001.bin


More information about the Openais mailing list