]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: ctty: Add comments for the special values: -1 and -2.
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Tue, 10 Jan 2023 13:04:40 +0000 (22:04 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Tue, 10 Jan 2023 13:04:40 +0000 (22:04 +0900)
commit3b7df69aaa5752f78537eafa5838f65a1ddfc938
tree28e93ac19ecdfafc80f7b0076afad5cd4d6f02eb
parent8e77725f3183e91762b2cac3682c7a3f0f4483f9
Cygwin: ctty: Add comments for the special values: -1 and -2.

_pinfo::ctty has two special values other than the device id of
the allocated ctty:
-1: CTTY is not initialized yet. Can be associated with the TTY
    which is associated with the session leader.
-2: CTTY has been released by setsid(). Can be associate only with
    new TTY which is not associated with any other session as CTTY,
    but cannot be associate with the TTYs already associated with
    other sessions.
This patch adds the comments in some source files.

Suggested-by: Corinna Vinschen <corinna@vinschen.de>
Signedoff-by: Takashi Yano <takashi.yano@nifty.ne.jp>
winsup/cygwin/pinfo.cc
winsup/cygwin/syscalls.cc
This page took 0.029285 seconds and 5 git commands to generate.