Use non blocking socket accept and read

This commit is contained in:
James Booth
2015-05-19 00:39:35 +01:00
parent c6fb212a74
commit abc78757b6
2 changed files with 88 additions and 37 deletions

View File

@@ -38,7 +38,9 @@ prime_get_passwd(void)
void
prime_for(char *id, char *stream)
{
g_hash_table_insert(idstubs, strdup(id), strdup(stream));
if (idstubs) {
g_hash_table_insert(idstubs, strdup(id), strdup(stream));
}
}
char*