/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to plugins.d/mandos-client.c

  • Committer: Teddy Hogeborn
  • Date: 2009-09-10 17:21:36 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090910172136-plhvv6jjz8bjrhz4
* plugins.d/mandos-client.c (init_gnutls_session): Retry interrupted
                                                   GnuTLS functions.
  (main): Drop privileges early, and raise them only where needed and
          lower them whenever possible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1000
1000
  bool gpgme_initialized = false;
1001
1001
  float delay = 2.5f;
1002
1002
  
1003
 
  struct sigaction old_sigterm_action = { .sa_handler = SIG_DFL };
 
1003
  struct sigaction old_sigterm_action;
1004
1004
  struct sigaction sigterm_action = { .sa_handler = handle_sigterm };
1005
1005
  
1006
1006
  uid = getuid();