]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/FdNotes.cc
Support a "shared listen" concept when multiple concurrent processes listen
[thirdparty/squid.git] / src / ipc / FdNotes.cc
1 /*
2 * $Id$
3 *
4 * DEBUG: section 54 Interprocess Communication
5 *
6 */
7
8 #include "config.h"
9 #include "Debug.h"
10 #include "ipc/FdNotes.h"
11
12
13 const char *
14 Ipc::FdNote(int fdNoteId)
15 {
16 static const char *FdNotes[Ipc::fdnEnd] = {
17 "None", // fdnNone
18 "HTTP Socket" // fdnHttpSocket
19 };
20
21 if (fdnNone < fdNoteId && fdNoteId < fdnEnd)
22 return FdNotes[fdNoteId];
23
24 debugs(54, 1, HERE << "salvaged bug: wrong fd_note ID: " << fdNoteId);
25 return FdNotes[fdnNone];
26 }