Pinger and possibly other optional externals require KidIdentifier via
debugs(). Instead of making KidIdentifier global, we could add a "plugin" API
to add program-dependent stuff to debugs() and friends, but we should not add
that kind of complexity unless really necessary. We could also link pinger
with libipc.la but that will probably cause more problems with IPC
dependencies.
extern int opt_send_signal; /* -1 */
extern int opt_no_daemon; /* 0 */
+/// current Squid process number (e.g., 4).
+/// Zero for SMP-unaware code and in no-SMP mode.
+ extern int KidIdentifier; /* 0 */
#ifdef __cplusplus
}
Kids TheKids;
char KidName[NAME_MAX];
-int KidIdentifier;
Kids::Kids()
{
extern Kids TheKids; ///< All kids being maintained
extern char KidName[NAME_MAX]; ///< current Squid process name (e.g., squid2)
-extern int KidIdentifier; ///< current Squid process number (e.g., 4)
#endif /* SQUID_IPC_KIDS_H */