Cygwin: ctty: Remove old 'kludge' code.
commit93f70d7849b865f2081596bbeabdd6fca6101553
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Sun, 5 Mar 2023 09:17:39 +0000 (5 18:17 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Tue, 7 Mar 2023 01:51:44 +0000 (7 10:51 +0900)
tree92e2ee6ef2e77e90209e74c4ce903a3466197213
parent13a84ac79b1c8e7e6aa3c7a2444ae2cbbe5ee430
Cygwin: ctty: Remove old 'kludge' code.

Remove old 'kludge' code which does not seem necessary anymore. The
comment of the 'kludge' is as follows.

  * syscalls.cc (setsid): On second thought, in the spirit of keeping
    things kludgy, set ctty to -2 here as a special flag, and...
    (open): ...only eschew setting O_NOCTTY when that case is detected.

Fixes: c38a2d837303
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
winsup/cygwin/dtable.cc
winsup/cygwin/syscalls.cc