[CRIU] [PATCH 3/2] tty:add comment explaining indices
Pavel Emelyanov
xemul at parallels.com
Fri Dec 19 08:50:30 PST 2014
On 12/19/2014 07:45 PM, Ruslan Kuprieiev wrote:
> Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
> ---
> tty.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/tty.c b/tty.c
> index 7b184c7..4f0b917 100644
> --- a/tty.c
> +++ b/tty.c
> @@ -116,6 +116,12 @@ static LIST_HEAD(all_ttys);
> */
>
> #define MAX_TTYS 1024
> +
> +/*
> + * Custom indices should be odd numbers just in case if we
Should be odd, but 1004 is even.
> + * need evens for pair numbering someday.
> + */
> +
> #define MAX_PTY_INDEX 1000
> #define CONSOLE_INDEX 1002
> #define VT_INDEX 1004
>
More information about the CRIU
mailing list