Viewing Issue Simple Details
[ Jump to Notes ]
|
[ Issue History ]
[ Print ]
|
ID |
Category |
Severity |
Type |
Date Submitted |
Last Update |
0001648 |
[1003.1(2016/18)/Issue7+TC2] Shell and Utilities |
Objection |
Clarification Requested |
2023-03-30 09:34 |
2024-06-11 09:07 |
|
Reporter |
geoffclare |
View Status |
public |
|
Assigned To |
|
Priority |
normal |
Resolution |
Accepted |
|
Status |
Closed |
|
|
|
|
Name |
Geoff Clare |
Organization |
The Open Group |
User Reference |
|
Section |
1.4 Utility Description Defaults |
Page Number |
2339 |
Line Number |
74433-74444 |
Interp Status |
--- |
Final Accepted Text |
|
|
Summary |
0001648: Confusing description of ASYNCHRONOUS EVENTS default behaviour |
Description |
The default behaviour described for signal handling in the ASYNCHRONOUS EVENTS section of 1.4 Utility Description Defaults is highly confusing because the word "default" is doing multiple jobs.
It also has a list of three items that at first sight seem inter-related, but the list is introduced with "... shall be one of the following", indicating that they are independent choices. By a strict reading, this gives implementations the freedom to do unexpected things (like be terminated by a signal that was inherited as ignored).
In addition, the second list item appears to be redundant as it includes the condition "when no action has been taken to change the default". Since this section is describing the default behaviour, the condition is always true and thus the second item is effectively just a repeat of the first.
Finally, the last paragraph of this section should be conditional on cases where the signal terminates the utility.
|
Desired Action |
Change:... the action taken as a result of the signal shall be one of the following: - The action shall be that inherited from the parent according to the rules of inheritance of signal actions defined in the System Interfaces volume of POSIX.1-2017.
- When no action has been taken to change the default, the default action shall be that specified by the System Interfaces volume of POSIX.1-2017.
- The result of the utility's execution is as if default actions had been taken.
A utility is permitted to catch a signal, perform some additional processing (such as deleting temporary files), restore the default signal action (or action inherited from the parent process), and resignal itself. to:... the action taken as a result of the signal shall be as follows: - If the action inherited from the invoking process, according to to the rules of inheritance of signal actions defined in the System Interfaces volume of POSIX.1-2017, is for the signal to be ignored, the utility shall ignore the signal.
- If the action inherited from the invoking process, according to to the rules of inheritance of signal actions defined in the System Interfaces volume of POSIX.1-2017, is the default signal action, the result of the utility's execution shall be as if the default signal action had been taken.
When the required action is for the signal to terminate the utility, the utility may catch the signal, perform some additional processing (such as deleting temporary files), restore the default signal action, and resignal itself.
|
Tags |
applied_after_i8d3, tc3-2008 |
|
Attached Files |
|
|