corekeeper: Always include PID in core dump names.
authorBen Pfaff <blp@nicira.com>
Fri, 28 Aug 2009 20:05:48 +0000 (13:05 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 31 Aug 2009 16:11:32 +0000 (09:11 -0700)
commit3c4fae5f4563848dd6392434424e10e32e6b6f83
treed061fb7f10b37a684ef727b7dcc683fcc0c43c57
parentb6f67919d48078d2171927b291d0a2ac629c4535
corekeeper: Always include PID in core dump names.

Some distributions automatically set /proc/sys/kernel/core_uses_pid to 1
and others leave it at its default setting of 0.  That means that, with the
core_pattern that corekeeper was setting, on the former distributions the
PID would be included in core names and on the latter the PID would be
omitted.  For consistency, this commit forces the PID to be in the core
file name in either case (note that putting %p in core_pattern causes
the core_uses_pid setting to be disregarded).

CC: Martin Casado <casado@nicira.com>
debian/corekeeper.init