Adic Server Manuale Utente Pagina 194

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 218
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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");
. . .
}
}
Vedere la pagina 193
1 2 ... 189 190 191 192 193 194 195 196 197 198 199 ... 217 218

Commenti su questo manuale

Nessun commento