~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

  • Committer: Brian Aker
  • Date: 2010-08-19 16:45:03 UTC
  • mfrom: (1711.6.11 staging)
  • Revision ID: brian@tangent.org-20100819164503-t7rhibp5s7bv3dtu
Merge of signals, plus build fix for FreeBSD. Also contains memset/constructor patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
590
590
void set_user(const char *user, passwd *user_info_arg)
591
591
{
592
592
  assert(user_info_arg != 0);
593
 
  /*
594
 
    We can get a SIGSEGV when calling initgroups() on some systems when NSS
595
 
    is configured to use LDAP and the server is statically linked.  We set
596
 
    calling_initgroups as a flag to the SIGSEGV handler that is then used to
597
 
    output a specific message to help the user resolve this problem.
598
 
  */
599
 
  calling_initgroups= true;
600
593
  initgroups((char*) user, user_info_arg->pw_gid);
601
 
  calling_initgroups= false;
602
594
  if (setgid(user_info_arg->pw_gid) == -1)
603
595
  {
604
596
    sql_perror("setgid");