This commit is contained in:
Michael Graff
1998-11-10 01:56:44 +00:00
parent 91c21a94b8
commit bb039bc91e
3 changed files with 237 additions and 68 deletions

View File

@@ -37,8 +37,6 @@ my_shutdown(isc_task_t task, isc_event_t event)
fflush(stdout);
isc_event_free(&event);
tasks_done++;
return (ISC_TRUE);
}
@@ -51,6 +49,8 @@ my_listen(isc_task_t task, isc_event_t event)
fflush(stdout);
isc_event_free(&event);
tasks_done++;
return (ISC_TRUE);
}
@@ -138,11 +138,6 @@ main(int argc, char *argv[])
sizeof *event);
isc_task_send(t2, &event);
isc_task_shutdown(t1);
isc_task_shutdown(t2);
isc_task_detach(&t1);
isc_task_detach(&t2);
/*
* Grr! there is no way to say "wake me when it's over"
*/
@@ -151,6 +146,11 @@ main(int argc, char *argv[])
sleep(2);
}
isc_task_shutdown(t1);
isc_task_shutdown(t2);
isc_task_detach(&t1);
isc_task_detach(&t2);
printf("destroy\n");
isc_socket_detach(&so1);
isc_socket_detach(&so2);