PennMUSH Community

Changeset 1057

Show
Ignore:
Timestamp:
08/05/07 01:43:51 (1 year ago)
Author:
shawnw
Message:

Don't display dump_complete on a failed save.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/devel/CHANGES.182

    r1030 r1057  
    1313 
    1414========================================================================== 
     15 
     16Version 1.8.2 patchlevel 7                       ????  ??, 2007 
     17 
     18Fixes: 
     19  * Clarified the behavior of eval() and get_eval() in help. 
     20    Suggested by Talvo and Javelin. 
     21  * A failed db save no longer broadcasts a success message 
     22    in addition to a failure one. Reported by Cooee. 
    1523 
    1624Version 1.8.2 patchlevel 6                       July 9, 2007 
  • 1.8.3/branches/devel/src/game.c

    r1051 r1057  
    9595extern const unsigned char *tables; 
    9696extern void conf_default_set(void); 
    97 static int dump_database_internal(void); 
     97static bool dump_database_internal(void); 
    9898static FILE *db_open(const char *filename); 
    9999static FILE *db_open_write(const char *filename); 
     
    310310jmp_buf db_err; 
    311311 
    312 static int 
     312static bool 
    313313dump_database_internal(void) 
    314314{ 
     
    335335#endif 
    336336#endif 
    337     return 1
     337    return false
    338338  } else { 
    339339    local_dump_database(); 
     
    413413#endif 
    414414 
    415   return 0
     415  return true
    416416} 
    417417 
     
    512512 
    513513  do_rawlog(LT_ERR, "DUMPING: %s.#%d#", globals.dumpfile, epoch); 
    514   dump_database_internal(); 
    515   do_rawlog(LT_ERR, "DUMPING: %s.#%d# (done)", globals.dumpfile, epoch); 
     514  if (dump_database_internal()) 
     515    do_rawlog(LT_ERR, "DUMPING: %s.#%d# (done)", globals.dumpfile, epoch); 
    516516} 
    517517 
     
    529529{ 
    530530  pid_t child; 
    531   int nofork, status, split; 
     531  bool nofork, status, split; 
    532532  epoch++; 
    533533 
     
    606606    } else { 
    607607      reserve_fd(); 
    608       if (DUMP_NOFORK_COMPLETE && *DUMP_NOFORK_COMPLETE) 
     608      if (status && DUMP_NOFORK_COMPLETE && *DUMP_NOFORK_COMPLETE) 
    609609        flag_broadcast(0, 0, "%s", DUMP_NOFORK_COMPLETE); 
    610610    }