6 #include "protocol_extension.h"
10 void (*exit_function)(void);
13 static void* check_stdin_thread(
void* arg)
15 pthread_detach(pthread_self());
17 while (!feof(stdin)) {
21 fprintf(stderr,
"EOF on stdin. Exiting\n");
22 union c99hack ch = { .pointer = arg };
28 static const char *get_name(
void) {
38 GET_SERVER_API get_server_api) {
52 if (pthread_create(&t, NULL, check_stdin_thread, ch.pointer) != 0) {
53 perror(
"couldn't create stdin checking thread.");