--------------------- PatchSet 11192 Date: 2007/01/24 22:47:45 Author: wessels Branch: HEAD Tag: (none) Log: Set errno passed from diskd to squid. The diskd helper passes errno in responses. With this patch, errno is now set in the main squid process after processing a diskd response. Members: src/fs/diskd/store_io_diskd.c:1.34->1.35 Index: squid/src/fs/diskd/store_io_diskd.c =================================================================== RCS file: /cvsroot/squid/squid/src/fs/diskd/store_io_diskd.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- squid/src/fs/diskd/store_io_diskd.c 23 Jan 2007 17:42:06 -0000 1.34 +++ squid/src/fs/diskd/store_io_diskd.c 24 Jan 2007 22:47:45 -0000 1.35 @@ -1,6 +1,6 @@ /* - * $Id: store_io_diskd.c,v 1.34 2007/01/23 17:42:06 wessels Exp $ + * $Id: store_io_diskd.c,v 1.35 2007/01/24 22:47:45 wessels Exp $ * * DEBUG: section 79 Squid-side DISKD I/O functions. * AUTHOR: Duane Wessels @@ -443,6 +443,9 @@ } return; } + /* set errno passed from diskd. makes debugging more meaningful */ + if (M->status < 0) + errno = -M->status; switch (M->mtype) { case _MQD_OPEN: storeDiskdOpenDone(M);