5-22 DAS ACI 3.0 Asynchronous Support Layer
601626-B
Signal Handler Routine
The following code processes the result of child process work.
At the point this function is run, the results are placed in the
shared memory array entry, and developer should program
the logic that will take the results from there and place them
somewhere else.
The dasadmin sample application puts all the data into the
standard output. See Figure 5-22.
Figure 5-22 dasadmin Sample Application
/* dasadmin sample application, wait_for_child.c file */
void wait_for_child(int sig_no)
{
pid_t pid;
aci_async_entry* async_entry;
int exit_code;
int i;
pid = wait(&exit_code);
if ((async_entry = aci_async_find(pid)) != 0)
{
printf("results: getting results...\n");
. . .
}
}