Changeset 86 for trunk/src/sh_error.c


Ignore:
Timestamp:
Jan 20, 2007, 11:04:59 PM (18 years ago)
Author:
rainer
Message:

More thorough fix for ticket #47, and corresponding regression test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_error.c

    r65 r86  
    110110int  OnlyStderr    = S_TRUE;
    111111
     112/* --- Enable facilities not safe for closeall(). ---
     113 */
     114int  enableUnsafe  = S_FALSE;
    112115
    113116/*********************************************
     
    145148{
    146149  OnlyStderr    = flag;
     150  return;
     151}
     152
     153void sh_error_enable_unsafe (int flag)
     154{
     155  enableUnsafe    = flag;
    147156  return;
    148157}
     
    10261035  /* Full logging enabled.
    10271036   */
    1028   if (OnlyStderr == BAD)  /* full error logging enabled */
     1037  if (OnlyStderr == S_FALSE)  /* full error logging enabled */
    10291038    {
    10301039
     
    10831092          class != AUD)
    10841093        {
    1085           if (database_block == 0)
     1094          if (database_block == 0 && enableUnsafe == S_TRUE)
    10861095            {
    10871096              /* truncates; query_max is 16k
     
    12091218          )
    12101219        {
    1211           if (prelude_block == 0)
     1220          if (prelude_block == 0 && enableUnsafe == S_TRUE)
    12121221            {
    12131222              /* will truncate to 998 bytes
Note: See TracChangeset for help on using the changeset viewer.