--------------------- PatchSet 11224 Date: 2007/02/03 21:49:25 Author: hno Branch: SQUID_2_6 Tag: (none) Log: Author: wessels MFC: 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.33.2.1->1.33.2.2 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.33.2.1 retrieving revision 1.33.2.2 diff -u -r1.33.2.1 -r1.33.2.2 --- squid/src/fs/diskd/store_io_diskd.c 24 Jan 2007 01:54:48 -0000 1.33.2.1 +++ squid/src/fs/diskd/store_io_diskd.c 3 Feb 2007 21:49:25 -0000 1.33.2.2 @@ -1,6 +1,6 @@ /* - * $Id: store_io_diskd.c,v 1.33.2.1 2007/01/24 01:54:48 hno Exp $ + * $Id: store_io_diskd.c,v 1.33.2.2 2007/02/03 21:49:25 hno 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);