When getprotobyname("tcp") returns NULL, how do you recover? I tried:
but it doesn't seem to get working again until the application trying to connect to this app disconnects.Code:while ( ((int)(ptrp = getprotobyname("tcp"))) == 0) {
fprintf(stderr, "cannot map \"tcp\" to protocol number\n");
sleep(1);
}
Is there a good way to recover from this?