Changed the calls to write() to send() so that we can use send(...,
MSG_NOSIGNAL) and not get signals sent to the process. (easier for debugging and the system doesn't need to worry about signals.)
This commit is contained in:
1 parent
63a1fa96cc
commit
7240af4333
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -1,4 +1,4 @@
|
||||
/* $Id: buffer.c,v 1.18 2001-11-26 01:39:07 rjkaes Exp $
|
||||
/* $Id: buffer.c,v 1.19 2001-12-19 20:41:28 rjkaes Exp $
|
||||
*
|
||||
* The buffer used in each connection is a linked list of lines. As the lines
|
||||
* are read in and written out the buffer expands and contracts. Basically,
|
||||
@@ -259,7 +259,7 @@ write_buffer(int fd, struct buffer_s * buffptr)
|
||||
|
||||
line = BUFFER_HEAD(buffptr);
|
||||
bytessent =
|
||||
write(fd, line->string + line->pos, line->length - line->pos);
|
||||
send(fd, line->string + line->pos, line->length - line->pos, MSG_NOSIGNAL);
|
||||
|
||||
if (bytessent >= 0) {
|
||||
/* bytes sent, adjust buffer */
|
||||
|
||||
Reference in new issue
Block a user