Adic Server Manuel d'utilisateur Page 194

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 218
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 193
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");
. . .
}
}
Vue de la page 193
1 2 ... 189 190 191 192 193 194 195 196 197 198 199 ... 217 218

Commentaires sur ces manuels

Pas de commentaire