Thanks everyone, I got it fixed.
Type: Posts; User: wirmius
Thanks everyone, I got it fixed.
Errno of fsync is also one strange thing:
-1 0 - Success
is output for
printf("%i %i - %s\n", fsync(rr->sock), errno, strerror(errno));
P.S. I just tried to perform send command from another...
Andurils idea about \n at the end seems to work for printf, but still no luck with send. fsync(rr->sock) shows -1, but return value of send is 4 and no errno is set. I've been programming sockets...
Hi everyone!
My problem is that i have a function containing this:
printf("text");
send(rr->sock, "text", 4, 0);
It runs in separate thread from the main function, rr->sock is...