~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/signal_handler/signal_handler.cc

Fix pidfile argument.

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
    }
103
103
    (void)close(file); /* We can ignore the error, since we are going to error anyway at this point */
104
104
  }
105
 
  snprintf(buff, 1024, "Can't start server: can't create PID file (%s)", pidfile_name);
 
105
  memset(buff, 0, sizeof(buff));
 
106
  snprintf(buff, sizeof(buff)-1, "Can't start server: can't create PID file (%s)", pidfile_name);
106
107
  sql_perror(buff);
107
108
  exit(1);
108
109
}