[SP] write(2) return 0의 의미
write(2)에 대한 함수 정의 보는 법
> man 2 write
synopsis : ssize_t write(int fildes, const void* buffer, size_t count)
On success, the number of bytes written are returned (zero indicates nothing was written).
* reference
stackoverflow.com/questions/5656628/what-should-i-do-when-writefd-buf-count-returns-0
What should I do when write(fd, buf, count) returns 0?
Possible Duplicate: Is a return value of 0 from write(2) in C an error? Assuming that count > 0 : ret = write(fd, buf, count); if(ret == 0) { // Should I try to write again // or ...
stackoverflow.com
stackoverflow.com/questions/2176443/is-a-return-value-of-0-from-write2-in-c-an-error
Is a return value of 0 from write(2) in C an error?
In the man page for the system call write(2) - ssize_t write(int fd, const void *buf, size_t count); it says the following: Return Value On success, the number of bytes written are re...
stackoverflow.com