Signal Handler Routine - ADIC Server User Manual

Adic server user manual
Table of Contents

Advertisement

/* 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");
}
}
Figure 5-22
5-22
DAS ACI 3.0 Asynchronous Support Layer

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.
. . .
dasadmin Sample Application
601626-B

Advertisement

Table of Contents
loading

Table of Contents