crashpad/third_party/getopt
Mark Mentovai 76a67a37b1 Add the --monitor-self argument to crashpad_handler
https://crbug.com/678959 added “fallback” crash reporting for
crashpad_handler on Windows, in a Chrome- and Windows-specific way. This
implements a more general self-monitor mechanism that will work on
multiple platforms and in the absence of Chrome.

When starting crashpad_handler (let’s call it the “first instance”) with
--monitor-self, it will start another crashpad_handler (the “second
instance”). The second instance monitors the first one for crashes. The
second instance will be started in mostly the same way as the first
instance, except --monitor-self will not be provided to the second
instance.

Bug: crashpad:143
Change-Id: I76f3f47d1762d8ecae1814357cb672c8b7bd5e95
Reviewed-on: https://chromium-review.googlesource.com/466267
Reviewed-by: Sigurður Ásgeirsson <siggi@chromium.org>
Reviewed-by: Scott Graham <scottmg@chromium.org>
2017-04-04 15:30:36 +00:00
..
LICENSE win: get tools/crashpad_database_util mostly working 2015-05-06 10:28:07 -07:00
README.crashpad Add the --monitor-self argument to crashpad_handler 2017-04-04 15:30:36 +00:00
getopt.cc Add the --monitor-self argument to crashpad_handler 2017-04-04 15:30:36 +00:00
getopt.gyp win: Compile getopt as C++ and wrap in crashpad namespace 2015-11-12 14:10:24 -08:00
getopt.h Add the --monitor-self argument to crashpad_handler 2017-04-04 15:30:36 +00:00

README.crashpad

Name: Gregory Pietsch getopt
Short Name: getopt
URL: https://sourceware.org/ml/newlib/2005/msg00758.html
License: Public domain
License File: LICENSE
Security Critical: no

Description:
A public domain implementation of getopt.

Local Modifications:
 - Minor compilation fixes applied for Windows.
 - NO_ARG, REQUIRED_ARG, and OPTIONAL_ARG were renamed to the more traditional
   no_argument, required_argument, and optional_argument for source
   compatibility with BSD and glibc getopt_long().
 - Add copy of copyright (Public domain) to the top of both files for Chromium's
   checklicenses step.
 - Compiled as .cc, and wrapped in namespace crashpad.
 - memcmp() -> strncmp() in getopt.cc to make ASan happier about some string
   manipulation.