Commit de1026b2 authored by unknown's avatar unknown

dbug.c:

  SCCS merged


dbug/dbug.c:
  SCCS merged
parents 340f3369 09ab159d
......@@ -1979,12 +1979,7 @@ static void DBUGOpenFile(CODE_STATE *cs,
else
{
newfile= !EXISTS(name);
if (!(fp= fopen(name,
#if defined(MSDOS) || defined(__WIN__)
append ? "a+c" : "wc"
#else
append ? "a+" : "w"
#endif
if (!(fp= fopen(name, append ? "a+" : "w")))
)))
{
(void) fprintf(stderr, ERR_OPEN, cs->process, name);
......
......@@ -151,6 +151,11 @@ int main(int argc __attribute__((unused)), char *argv[])
MY_INIT(argv[0]);
if (my_set_max_open_files(100) < 100)
{
fprintf(stderr, "can't allocate 100 file descriptors\n");
exit(1);
}
bzero(&pagecache, sizeof(pagecache));
maria_data_root= (char *)".";
if (maria_log_remove())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment