Files
android_kernel_xiaomi_sm8450/include/linux
Scott James Remnant 02b51df1b0 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.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Scott James Remnant <scott@ubuntu.com>
Acked-by: Matt Helsley <matthltc@us.ibm.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Acked-by: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-09-23 07:39:29 -07:00
..
2006-09-26 17:40:24 -04:00
2009-09-15 09:37:12 -07:00
2009-09-23 07:39:29 -07:00
2009-06-18 08:46:47 +10:00
2009-06-30 18:56:00 -07:00
2009-09-09 11:19:00 -04:00
2009-09-19 13:13:33 -07:00
2008-02-06 10:41:02 -08:00
2008-07-01 11:28:06 +10:00
2009-06-17 00:36:36 -04:00
2008-10-20 11:01:52 -07:00
2009-01-30 23:38:03 +05:30
2009-09-20 16:09:20 +05:30
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2009-01-30 23:38:37 +05:30
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-12-03 22:12:38 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-12-03 22:12:38 -08:00
2008-03-04 13:41:23 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2009-04-01 08:59:23 -07:00
2009-01-30 23:39:42 +05:30
2009-06-01 06:21:13 +00:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-10-20 08:52:42 -07:00
2009-01-30 23:40:06 +05:30
2007-10-18 14:37:29 -07:00
2009-04-23 10:06:35 +01:00
2008-06-06 11:29:10 -07:00
2009-01-04 13:33:20 -08:00
2005-04-16 15:20:36 -07:00
2008-05-29 01:38:46 -07:00
2008-01-28 14:54:10 -08:00
2005-04-16 15:20:36 -07:00
2009-06-11 21:36:09 -04:00
2005-04-16 15:20:36 -07:00
2009-01-30 23:44:08 +05:30
2008-07-04 10:40:05 -07:00
2009-07-29 19:10:35 -07:00
2008-02-03 17:45:46 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-07-25 10:53:33 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2009-07-12 12:22:34 -07:00
2007-07-17 10:23:04 -07:00
2008-12-25 11:01:43 +11:00
2007-05-10 18:24:13 +02:00
2009-07-14 20:29:57 +08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-02-03 15:42:53 +02:00
2009-06-11 21:36:06 -04:00
2009-09-18 09:48:52 -07:00
2007-05-08 11:15:26 -07:00
2008-04-25 13:26:55 +01:00
2009-06-22 10:12:30 +01:00
2008-04-25 13:26:55 +01:00
2009-05-18 14:46:26 +01:00
2007-02-09 17:39:36 -05:00
2009-01-30 23:46:03 +05:30
2009-04-03 14:53:32 -07:00
2009-09-14 17:41:42 -07:00
2009-01-30 23:46:40 +05:30
2009-06-17 09:33:49 -07:00
2005-04-16 15:20:36 -07:00
2009-01-30 23:48:33 +05:30
2009-07-08 09:18:05 -07:00
2008-01-28 23:21:18 +01:00
2007-06-01 08:18:29 -07:00
2009-03-16 08:32:27 -06:00
2008-08-20 13:19:51 -07:00
2009-06-24 08:17:04 -04:00
2006-03-31 12:18:54 -08:00
2008-12-29 11:27:46 +02:00
2009-06-30 18:56:00 -07:00
2005-04-16 15:20:36 -07:00
2007-10-17 08:43:01 -07:00
2005-04-16 15:20:36 -07:00
2009-06-15 21:30:25 -07:00
2005-04-16 15:20:36 -07:00
2009-09-22 07:17:25 -07:00
2009-06-18 13:04:05 -07:00
2006-10-02 07:57:12 -07:00
2007-07-10 00:35:17 -04:00
2008-10-16 11:21:40 -07:00
2009-09-01 01:13:31 -07:00
2005-04-16 15:20:36 -07:00
2009-01-30 23:51:17 +05:30
2007-03-16 00:59:29 -04:00
2008-07-31 18:45:41 +02:00
2005-04-16 15:20:36 -07:00
2008-08-08 15:13:27 +01:00
2008-10-16 11:21:38 -07:00
2005-04-16 15:20:36 -07:00
2007-10-22 00:56:52 -04:00
2009-09-01 17:52:57 -07:00
2009-04-02 19:04:53 -07:00
2009-09-11 12:54:58 -07:00
2009-08-19 23:08:24 +04:00
2008-06-11 21:00:38 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2009-07-26 19:25:44 -07:00
2009-01-30 23:53:12 +05:30
2009-01-30 23:53:40 +05:30
2005-04-16 15:20:36 -07:00
2009-01-30 23:54:53 +05:30
2005-05-05 14:25:59 -07:00
2005-04-16 15:20:36 -07:00
2009-01-30 23:55:45 +05:30
2005-04-16 15:20:36 -07:00
2009-01-30 23:56:13 +05:30
2009-01-30 23:56:48 +05:30
2009-05-19 16:02:02 -07:00
2008-08-02 18:36:10 +01:00
2009-06-29 08:59:10 +10:00
2009-02-02 21:40:58 +05:30
2009-06-02 00:45:24 -07:00
2009-08-21 15:30:12 -07:00
2005-04-16 15:20:36 -07:00
2009-05-18 14:46:26 +01:00
2008-05-05 16:47:14 +10:00
2006-10-10 15:37:22 -07:00
2009-07-31 08:55:48 +02:00
2005-04-16 15:20:36 -07:00
2008-10-15 14:24:08 +02:00
2009-06-18 13:03:56 -07:00
2009-04-21 13:41:48 -07:00
2009-04-21 13:41:48 -07:00
2006-10-04 00:31:09 -07:00
2009-01-30 23:59:44 +05:30
2009-01-31 00:00:06 +05:30
2009-08-29 15:53:00 +02:00
2008-04-19 19:10:28 -07:00
2006-11-30 05:24:39 +01:00
2009-08-17 22:38:04 -04:00
2007-04-25 22:25:52 -07:00
2009-01-05 08:40:30 -08:00
2007-10-17 08:42:52 -07:00
2009-09-10 10:46:47 +03:00
2007-11-29 09:24:52 -08:00
2009-09-19 13:13:17 -07:00
2008-07-04 10:40:05 -07:00
2009-09-22 07:17:33 -07:00
2008-04-19 19:44:57 +02:00
2009-09-18 21:22:08 +02:00
2005-04-16 15:20:36 -07:00
2009-04-06 16:06:26 +01:00
2009-06-23 20:21:39 +01:00
2009-07-30 16:03:45 +09:30
2007-07-17 10:23:03 -07:00
2008-09-01 09:47:16 +02:00
2008-02-03 17:45:46 +02:00
2009-04-28 07:37:28 +02:00
2007-07-16 09:05:34 -07:00
2006-06-05 12:29:17 -07:00
2009-09-23 07:39:28 -07:00
2009-06-16 19:47:48 -07:00
2005-04-16 15:20:36 -07:00
2008-04-29 08:06:01 -07:00
2007-05-09 12:30:49 -07:00
2007-10-10 16:54:03 -07:00
2009-09-22 07:17:35 -07:00
2009-06-16 08:40:20 +02:00
2009-04-29 17:32:35 -07:00
2009-01-31 00:00:35 +05:30
2009-09-22 07:17:41 -07:00
2005-04-16 15:20:36 -07:00
2009-07-08 09:31:56 -07:00
2009-09-18 21:22:08 +02:00
2009-06-11 21:36:02 -04:00
2006-11-30 04:40:22 +01:00
2009-01-31 00:01:11 +05:30
2008-06-06 11:29:12 -07:00
2009-03-20 10:48:14 -07:00
2009-09-21 15:14:51 +02:00
2005-04-16 15:20:36 -07:00
2009-06-17 18:02:11 -07:00
2009-06-17 18:02:11 -07:00
2007-05-09 12:30:54 -07:00
2006-03-20 13:44:40 -05:00
2009-08-12 08:21:39 -07:00
2009-06-17 12:24:34 -07:00
2009-06-17 18:02:11 -07:00
2009-03-10 20:33:18 -04:00
2009-06-15 21:44:43 -07:00
2008-12-21 14:21:14 +11:00
2009-04-01 08:59:13 -07:00
2007-10-16 09:43:02 -07:00
2009-04-01 08:59:13 -07:00
2005-04-16 15:20:36 -07:00
2008-02-14 21:13:33 -08:00
2005-04-16 15:20:36 -07:00
2009-01-08 08:31:12 -08:00
2009-01-31 00:03:40 +05:30
2009-04-24 08:54:21 +02:00
2008-08-05 14:33:50 -07:00
2009-09-22 07:17:47 -07:00
2006-10-03 23:01:26 +02:00
2009-03-13 16:09:12 -07:00
2008-06-11 21:00:38 -07:00
2009-06-18 13:04:04 -07:00
2009-07-29 19:10:36 -07:00
2007-10-19 11:53:41 -07:00
2005-04-16 15:20:36 -07:00
2009-03-30 15:22:01 +02:00
2009-06-11 21:36:12 -04:00
2009-03-26 02:18:35 +01:00
2008-10-02 15:53:13 -07:00
2009-01-31 00:05:59 +05:30
2008-11-12 17:17:17 -08:00
2005-04-16 15:20:36 -07:00
2009-09-19 08:53:22 +02:00
2009-09-19 08:53:22 +02:00
2009-08-23 19:13:02 -07:00
2008-01-30 13:31:47 +01:00
2009-06-24 08:17:06 -04:00
2008-05-25 07:09:47 +02:00
2009-09-01 12:48:21 -04:00
2005-11-07 07:53:46 -08:00
2009-09-22 07:17:31 -07:00
2009-05-09 10:49:41 -04:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2009-04-01 08:59:24 -07:00
2005-04-16 15:20:36 -07:00
2007-10-16 09:43:17 -07:00
2008-07-25 10:53:42 -07:00
2008-07-24 08:31:21 -04:00
2008-04-25 00:25:08 +02:00
2008-02-07 08:42:34 -08:00
2009-04-08 14:33:38 -07:00
2008-02-07 08:42:30 -08:00
2009-04-13 15:04:29 -07:00
2009-01-31 00:06:33 +05:30
2009-06-15 15:50:49 +02:00
2009-04-21 19:40:00 -07:00
2008-07-25 10:53:30 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-09-09 17:41:42 +02:00
2008-06-20 14:05:53 -06:00
2009-06-16 19:47:48 -07:00
2009-04-27 02:45:02 -07:00
2005-04-16 15:20:36 -07:00
2009-03-27 12:18:56 -04:00
2005-04-16 15:20:36 -07:00
2009-01-31 00:07:00 +05:30
2009-08-31 18:08:51 +02:00
2009-05-12 11:11:48 +02:00
2008-07-20 17:12:37 -07:00
2007-05-08 11:15:18 -07:00
2006-10-01 00:39:18 -07:00
2009-04-02 19:05:01 -07:00
2005-04-16 15:20:36 -07:00
2009-07-06 13:57:03 -07:00
2009-09-02 01:03:43 -07:00
2008-10-13 09:51:40 -07:00
2009-08-30 22:26:34 +02:00
2009-02-18 15:37:53 -08:00
2006-03-31 12:18:56 -08:00
2009-09-16 16:44:33 +02:00
2009-02-03 11:23:12 +11:00
2006-09-28 17:53:59 -07:00
2009-06-11 08:50:59 -07:00
2005-04-16 15:20:36 -07:00
2008-07-21 15:15:55 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2009-08-26 12:39:29 +01:00
2008-05-09 07:45:18 -07:00
2007-12-26 19:36:35 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2009-09-22 07:17:30 -07:00
2009-09-19 13:13:25 -07:00
2009-09-19 13:13:26 -07:00
2009-09-15 16:51:30 +02:00
2009-09-21 15:14:53 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00