r26: Modified write() to be send().
authoryoe <yoe>
Thu, 14 Nov 2002 22:20:54 +0000 (22:20 +0000)
committeryoe <yoe>
Thu, 14 Nov 2002 22:20:54 +0000 (22:20 +0000)
commit642fd99fde2df823be3cc2af31da699d03b22074
treea4e60e1a430ce22f4ef27b6b1d391353b77587f1
parent70665ae9b627577067d929d84392eee9f6290b8d
r26: Modified write() to be send().
Rationale: when #define'ing _LARGEFILE_SOURCE, and _FILE_OFFSET_BITS
to 64 so as to get Large File Support, some file-related syscalls are
modified to their 64 bit counterparts; write() is one of them. And
there's no such thing as a 'large' socket, which has caused nbd-server
to hang in the write() call. Changing the write() to a send() fixed
this (and I hate ugly bugs. This one took me, like, three days ;-)
nbd-server.c