aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/builtin-trace.c
diff options
context:
space:
mode:
authorScott James Remnant <[email protected]>2009-09-22 16:43:44 -0700
committerLinus Torvalds <[email protected]>2009-09-23 07:39:29 -0700
commit02b51df1b07b4e9ca823c89284e704cadb323cd1 (patch)
treec68de4809f261d742f597c686826cdc9d047fb4a /tools/perf/builtin-trace.c
parent88e9d34c727883d7d6f02cf1475b3ec98b8480c7 (diff)
proc connector: add event for process becoming session leader
The act of a process becoming a session leader is a useful signal to a supervising init daemon such as Upstart. While a daemon will normally do this as part of the process of becoming a daemon, it is rare for its children to do so. When the children do, it is nearly always a sign that the child should be considered detached from the parent and not supervised along with it. The poster-child example is OpenSSH; the per-login children call setsid() so that they may control the pty connected to them. If the primary daemon dies or is restarted, we do not want to consider the per-login children and want to respawn the primary daemon without killing the children. This patch adds a new PROC_SID_EVENT and associated structure to the proc_event event_data union, it arranges for this to be emitted when the special PIDTYPE_SID pid is set. [[email protected]: coding-style fixes] Signed-off-by: Scott James Remnant <[email protected]> Acked-by: Matt Helsley <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Evgeniy Polyakov <[email protected]> Acked-by: "David S. Miller" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/builtin-trace.c')
0 files changed, 0 insertions, 0 deletions