Return Values - ADIC Server User Manual

Adic server user manual
Table of Contents

Advertisement

Return Values

. . .
/*
* sadmin sample application. wait_for_child.c file
*/
if ((async_entry = aci_async_find(pid)) != 0)
{
printf("results: getting results...\n");
switch(async_entry->aci_func)
{
case DAS_MOUNT:
aci_async_free(async_entry);
printf("results: results done...\n");
}
. . .
Figure 5-13
21 Dec 2001
The call was successful if a pointer to the found value is
returned.
The call failed if zero is returned
The structure of the aci_async_entry uses a pid_t type member
pid as a unique identifier of an entry. When calling several
asynchronous calls at a time the system can assign the same
process id to a new process when a previous call has
terminated. This could cause duplicate values the in pid fields
of shared memory array entries. Refer to Response Technique on
page 5-21.
See Figure 5-13 for an example of the aci_async_find function.
. . .
}
Example of the aci_async_find Function
aci_async_find()
5-15

Advertisement

Table of Contents
loading

Table of Contents