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
..
2009-09-12 11:51:14 +01:00
2009-09-04 02:16:14 -07:00
2009-08-07 10:39:56 -07:00
2009-09-19 00:51:34 -03:00
2009-09-17 09:47:22 +02:00
2009-08-27 22:05:39 -07:00
2009-09-22 07:54:33 -07:00
2009-09-18 09:47:25 -07:00
2009-09-15 09:37:12 -07:00
2009-08-25 16:07:58 +02:00
2009-08-24 14:56:30 +02:00
2009-08-24 14:56:30 +02:00
2009-08-24 14:56:30 +02:00
2009-08-24 14:56:30 +02:00
2009-09-23 07:39:29 -07:00
2009-09-17 09:47:05 +02:00
2009-09-09 11:19:00 -04:00
2009-09-15 20:49:33 -04:00
2009-09-19 13:13:33 -07:00
2009-08-03 09:04:57 +01:00
2009-09-20 16:09:20 +05:30
2009-09-01 01:14:07 -07:00
2009-09-01 19:47:20 -04:00
2009-09-15 09:50:47 -07:00
2009-09-16 15:18:52 +02:00
2009-09-05 11:30:42 -07:00
2009-09-11 14:33:31 +02:00
2009-08-21 09:26:15 -07:00
2009-09-11 14:33:32 +02:00
2009-09-14 08:24:53 +02:00
2009-09-22 07:17:38 -07:00
2009-09-21 15:14:51 +02:00
2009-07-31 12:28:46 +02:00
2009-07-29 19:10:35 -07:00
2009-08-28 20:25:24 +02:00
2009-09-23 07:39:29 -07:00
2009-08-15 19:02:07 +02:00
2009-09-01 12:45:14 -04:00
2009-09-23 07:39:28 -07:00
2009-09-14 12:34:07 +10:00
2009-09-19 13:13:31 -07:00
2009-09-01 01:24:30 -07:00
2009-09-18 09:48:52 -07:00
2009-09-04 20:40:25 +01:00
2009-09-19 12:50:38 -07:00
2009-09-04 20:40:34 +01:00
2009-08-28 14:24:10 +10:00
2009-09-08 21:17:48 -04:00
2009-09-14 17:41:42 -07:00
2009-08-22 17:52:13 -05:00
2009-09-02 23:07:39 -07:00
2009-09-22 07:17:47 -07:00
2009-09-22 07:17:25 -07:00
2009-09-18 07:25:44 +02:00
2009-09-20 16:58:35 +05:30
2009-08-17 21:33:49 -07:00
2009-09-22 07:17:25 -07:00
2009-09-22 07:17:38 -07:00
2009-08-25 13:44:04 +01:00
2009-09-11 13:23:18 -07:00
2009-09-19 13:13:31 -07:00
2009-09-01 01:13:31 -07:00
2009-09-17 15:15:11 +02:00
2009-08-14 15:59:30 +02:00
2009-09-22 07:17:42 -07:00
2009-09-19 00:16:14 -03:00
2009-08-12 22:13:15 -07:00
2009-09-01 17:52:57 -07:00
2009-08-28 14:40:24 -04:00
2009-09-11 12:54:58 -07:00
2009-08-19 23:08:24 +04:00
2009-09-07 01:56:33 -07:00
2009-09-15 02:37:40 -07:00
2009-09-21 14:28:04 +02:00
2009-08-21 15:30:12 -07:00
2009-09-14 17:55:15 -07:00
2009-08-26 15:41:16 -07:00
2009-07-31 08:55:48 +02:00
2009-09-11 13:21:31 -07:00
2009-08-29 15:53:00 +02:00
2009-08-17 22:38:04 -04:00
2009-09-16 17:44:10 +02:00
2009-09-10 10:46:47 +03:00
2009-09-23 07:39:28 -07:00
2009-09-02 21:29:22 +10:00
2009-09-02 21:29:22 +10:00
2009-09-19 13:13:17 -07:00
2009-09-23 07:39:27 -07:00
2009-08-27 14:29:16 +01:00
2009-09-15 23:51:31 -04:00
2009-09-22 07:17:33 -07:00
2009-09-18 21:22:08 +02:00
2009-09-10 08:33:20 +03:00
2009-09-10 08:33:16 +03:00
2009-07-30 16:03:45 +09:30
2009-07-30 16:03:46 +09:30
2009-09-01 19:47:20 -04:00
2009-08-19 21:46:09 -07:00
2009-09-22 07:17:48 -07:00
2009-08-31 17:30:14 -10:00
2009-08-02 15:41:37 +02:00
2009-08-17 08:37:18 +10:00
2009-09-23 07:39:28 -07:00
2009-08-18 20:13:03 -07:00
2009-09-22 07:17:35 -07:00
2009-09-19 12:50:38 -07:00
2009-09-21 15:14:56 +02:00
2009-09-22 07:17:37 -07:00
2009-08-18 16:31:13 -07:00
2009-09-22 07:17:41 -07:00
2009-09-22 07:17:42 -07:00
2009-09-22 07:17:31 -07:00
2009-09-22 07:17:39 -07:00
2009-09-18 21:22:08 +02:00
2009-09-21 15:14:51 +02:00
2009-09-15 02:39:20 -07:00
2009-09-17 20:53:52 -07:00
2009-09-14 17:02:50 -07:00
2009-09-22 07:54:33 -07:00
2009-08-09 15:06:19 -04:00
2009-08-12 08:21:39 -07:00
2009-08-14 09:13:43 -04:00
2009-08-19 23:08:22 +04:00
2009-08-03 09:56:52 +02:00
2009-08-07 10:39:55 -07:00
2009-09-15 02:37:40 -07:00
2009-09-22 07:17:38 -07:00
2009-09-20 16:57:50 +05:30
2009-09-22 07:17:38 -07:00
2009-08-22 13:07:09 +02:00
2009-09-14 17:39:12 -07:00
2009-09-17 16:47:06 -04:00
2009-09-15 09:50:48 -07:00
2009-09-09 14:19:11 -07:00
2009-09-15 09:39:44 -07:00
2009-08-14 15:00:53 +09:00
2009-09-21 14:34:11 +02:00
2009-09-21 14:34:11 +02:00
2009-09-11 12:55:10 -07:00
2009-08-23 00:04:44 +02:00
2009-09-14 20:27:00 +02:00
2009-09-22 07:17:49 -07:00
2009-09-22 07:17:47 -07:00
2009-07-29 19:10:36 -07:00
2009-09-21 14:28:04 +02:00
2009-09-22 07:17:24 -07:00
2009-09-19 08:53:22 +02: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
2009-09-01 12:48:21 -04:00
2009-09-04 19:42:22 -04:00
2009-09-22 07:17:31 -07:00
2009-09-09 03:42:23 -07:00
2009-09-15 02:44:17 -07:00
2009-07-31 12:28:45 +02:00
2009-09-22 07:17:45 -07:00
2009-09-10 10:11:24 +10:00
2009-09-15 11:37:33 +10:00
2009-09-19 13:13:19 -07:00
2009-09-19 13:13:32 -07:00
2009-09-19 13:13:30 -07:00
2009-08-24 19:52:38 +09:00
2009-09-15 09:50:49 -07:00
2009-08-06 11:36:25 +03:00
2009-09-14 20:19:06 +03:00
2009-08-31 18:08:51 +02:00
2009-08-31 18:08:51 +02:00
2009-09-22 07:17:25 -07:00
2009-07-28 14:19:20 +09:00
2009-09-21 09:15:07 -07:00
2009-09-18 09:48:52 -07:00
2009-09-01 18:25:07 -07:00
2009-09-02 01:03:43 -07:00
2009-09-15 10:17:30 +02:00
2009-08-30 22:26:34 +02:00
2009-09-16 16:44:33 +02:00
2009-08-26 08:29:02 +02:00
2009-09-15 09:50:47 -07:00
2009-08-04 13:46:30 -07:00
2009-09-19 13:13:35 -07:00
2009-08-21 00:53:12 -07:00
2009-07-29 19:10:39 -07:00
2009-09-21 15:14:54 +02:00
2009-08-26 12:39:29 +01:00
2009-09-09 13:29:41 -07:00
2009-09-19 00:18:36 -03:00
2009-07-30 16:03:46 +09:30
2009-07-30 16:03:46 +09:30
2009-07-30 16:03:46 +09:30
2009-07-30 16:03:46 +09:30
2009-08-14 15:00:52 +09: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
2009-09-16 15:18:52 +02:00
2009-09-10 10:11:22 +10:00