View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001932 | 1003.1(2024)/Issue8 | Base Definitions and Headers | public | 2025-06-24 23:46 | 2025-06-26 11:22 |
Reporter | hpa | Assigned To | |||
Priority | normal | Severity | Editorial | Type | Clarification Requested |
Status | New | Resolution | Open | ||
Name | H. Peter Anvin | ||||
Organization | |||||
User Reference | |||||
Section | XBD 11.1.10, 11.2.4, termios.h | ||||
Page Number | N/A | ||||
Line Number | N/A | ||||
Interp Status | |||||
Final Accepted Text | |||||
Summary | 0001932: termios: should cfsetospeed(B0) trigger SIGHUP? | ||||
Description | It is unclear to me if setting the output baud rate to 0 using cfsetospeed() followed by tcsetattr() should cause SIGHUP to be sent to the controlling process; in particular in the case of a pseudo-terminal. Linux currently does not send SIGHUP in this case, but has a separate, privileged, ioctl (TIOCVHANGUP) which can do so. | ||||
Desired Action | Clarification as to the intended meaning of "hang up" using the zero baud rate, in particular in the case of a pseudo-terminal. | ||||
Tags | No tags attached. |
|
The description of tcsetattr() includes:If the output baud rate stored in the termios structure pointed to by termios_p is the zero baud rate, B0, the modem control lines shall no longer be asserted. Normally, this shall disconnect the line. How this applies to a pseudo-terminal would depend on whether the implementation emulates modem control lines or not. The way this is handled in the UNIX conformance tests is that there is a config parameter to say whether or not modem control is supported. Certifications can be done using either hardware terminals or pseudo-terminals for the General Terminal Interface tests, and as far as I'm aware, all certifications that used pseudo-terminals have been done with that parameter set to "N". |
Date Modified | Username | Field | Change |
---|---|---|---|
2025-06-24 23:46 | hpa | New Issue | |
2025-06-26 11:22 | geoffclare | Note Added: 0007210 |