If you suspect you might need to use one
of these categories, examine the sendmail code first to determine the effect of each,
and then apply them in one window while examining the source in another.
15.2 The Behavior of -d
When sendmail is given the -d debugging switch, it internally performs three distinct
actions. First, if the category.level is omitted, sendmail presets all categories, 0??“99
inclusively, to a level of 1. It then sets the categories in the command line (if any) to
the corresponding levels specified (or to 1 if no level is specified). Finally, it calls setbuf(
3) to place the standard output in unbuffered mode.
Table 15-1. New alphanumeric debug categories
Category Does what
sm_check_assert Enable expensive SM_ASSERT checking.
sm_check_require Enable expensive SM_REQUIRE checking.
sm_check_ensure Enable expensive SM_ENSURE checking.
sm_trace_heap Trace sm_{malloc,realloc,free} calls.
sm_check_heap Enable memory leak detection.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
15.3 Interpret the Output | 533
Setting categories 0??“99 to a level of 1 has two side effects:
??? Usually, certain errors are not reported because they are tolerable, but a level of
1 generally causes those otherwise missing error messages to be printed. For
example, if the aliases file is missing, sendmail does not perform aliasing but is
silent about it.
Pages:
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949