~james-page/ubuntu/raring/dovecot/autopkgtest

« back to all changes in this revision

Viewing changes to src/lib/failures.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-06-11 11:11:54 UTC
  • mfrom: (1.15.2) (4.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20120611111154-678cwbdj6ktgsv1h
Tags: 1:2.1.7-1ubuntu1
* Merge from Debian unstable, remaining changes:
  + Add mail-stack-delivery package:
    - Update d/rules
    - d/control: convert existing dovecot-postfix package to a dummy
      package and add new mail-stack-delivery package.
    - Update maintainer scripts.
    - Rename d/dovecot-postfix.* to debian/mail-stack-delivery.*
    - d/mail-stack-delivery.preinst: Move previously installed backups and
      config files to a new package namespace.
    - d/mail-stack-delivery.prerm: Added to handle downgrades.
  + Use Snakeoil SSL certificates by default:
    - d/control: Depend on ssl-cert.
    - d/dovecot-core.postinst: Relax grep for SSL_* a bit.
  + Add autopkgtest to debian/tests/*.
  + Add ufw integration:
    - d/dovecot-core.ufw.profile: new ufw profile.
    - d/rules: install profile in dovecot-core.
    - d/control: dovecot-core - suggest ufw.
  + d/{control,rules}: enable PIE hardening.
  + d/dovecot-core.dirs: Added usr/share/doc/dovecot-core
  + Add apport hook:
    - d/rules, d/source_dovecot.py
  + Add upstart job:
    - d/rules, d/dovecot-core.dovecot.upstart, d/control,
      d/dovecot-core.dirs, dovecot-imapd.{postrm, postinst, prerm},
      d/dovecot-pop3d.{postinst, postrm, prerm}.
      d/mail-stack-deliver.postinst: Convert init script to upstart.
  + d/control: Added Pre-Depends: dpkg (>= 1.15.6) to dovecot-dbg to support
    xz compression in Ubuntu.
  + d/control: Demote dovecot-common Recommends: to Suggests: to prevent
    install of extra packages on upgrade.
  + d/patches/dovecot-drac.patch: Updated with version for dovecot >= 2.0.0.
  + d/control: Drop B-D on systemd.
* Dropped changes:
  + d/patches/fix-racey-restart.patch: part of 2.1.x, no longer required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
                                const char *format, va_list args);
45
45
 
46
46
extern const char *failure_log_type_prefixes[];
 
47
extern const char *failure_log_type_names[];
47
48
 
48
49
void i_log_type(const struct failure_context *ctx, const char *format, ...)
49
50
        ATTR_FORMAT(2, 3);
114
115
/* Prefix failures with a timestamp. fmt is in strftime() format. */
115
116
void i_set_failure_timestamp_format(const char *fmt);
116
117
/* When logging with internal error protocol, update the process's current
117
 
   IP address. This is mainly used by the master process to log some IP
118
 
   address if the process crash. */
119
 
void i_set_failure_ip(const struct ip_addr *ip);
 
118
   IP address / log prefix by sending it to log process. This is mainly used to
 
119
   improve the error message if the process crashes. */
 
120
void i_set_failure_send_ip(const struct ip_addr *ip);
 
121
void i_set_failure_send_prefix(const char *prefix);
120
122
 
121
123
/* Call the callback before exit()ing. The callback may update the status. */
122
124
void i_set_failure_exit_callback(void (*callback)(int *status));