1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-22 02:22:57 +00:00

Procan: Try to identify controlling terminal

This commit is contained in:
Gerhard Rieger 2023-11-11 17:45:02 +01:00
parent cd5673dbd0
commit 27877ea777
7 changed files with 314 additions and 36 deletions

View file

@ -193,6 +193,10 @@ Features:
value of SO_PROTOCOL/SO_PROTOTYPE and some other defines, definitions
of many C types, and the actual umask.
Procan tries to find the name of the controlling terminal, on Linux it
reads info from /proc/self/stat and searches for a device with matching
major and minor numbers.
Corrections:
When a sub process (EXEC, SYSTEM) terminated with exit code other than
0, its last sent data might have been lost depending on timing of read/