~ev/ubuntu/saucy/apport/drop-apport-noui

« back to all changes in this revision

Viewing changes to data/apport

  • Committer: Martin Pitt
  • Date: 2013-07-22 13:38:27 UTC
  • Revision ID: martin.pitt@canonical.com-20130722133827-2pqpdprt7u8qw0cm
* apport: Fix "Exectuable" typo, leading to reports not being synced on upstart crashes. Thanks James Hunt. (LP: #1203744)

Show diffs side-by-side

added added

removed removed

Lines of Context:
426
426
        if reportfile != sys.stderr:
427
427
            # Ensure that the file gets written to disk in the event of an
428
428
            # Upstart crash.
429
 
            if info.get('ExectuablePath', '') == '/sbin/init':
 
429
            if info.get('ExecutablePath', '') == '/sbin/init':
430
430
                reportfile.flush()
431
431
                os.fsync(reportfile.fileno())
432
432
                parent_directory = os.path.dirname(report)