The following issue has been SUBMITTED. 
====================================================================== 
http://austingroupbugs.net/view.php?id=1087 
====================================================================== 
Reported By:                philip-guenther
Assigned To:                
====================================================================== 
Project:                    1003.1(2016)/Issue7+TC2
Issue ID:                   1087
Category:                   System Interfaces
Type:                       Error
Severity:                   Objection
Priority:                   normal
Status:                     New
Name:                       Philip Guenther 
Organization:               OpenBSD 
User Reference:              
Section:                    truncate 
Page Number:                2178 
Line Number:                69754 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2016-10-14 05:07 UTC
Last Modified:              2016-10-14 05:07 UTC
====================================================================== 
Summary:                    truncate() should behave like write() and generate
SIGXFSZ for the thread instead of the process
Description: 
Lines 69753-69754 say:
    If the request would cause the file size to exceed the soft file size
    limit for the process, the request shall fail and the implementation
    shall generate the SIGXFSZ signal for the process.

This is inconsistent with the requirement on write():

    If the request would cause the file size to exceed the soft file size
    limit for the process and there is no room for any bytes to be
written,
    the request shall fail and the implementation shall generate the
SIGXFSZ
    signal for the thread.

As well as XSH section 2.4.1:
    Signals which are generated by some action attributable to a
particular
    thread, such as a hardware fault, shall be generated for the thread
that
    caused the signal to be generated.

Desired Action: 
Change lines 69753-69754 from:
    If the request would cause the file size to exceed the soft file size
    limit for the process, the request shall fail and the implementation
    shall generate the SIGXFSZ signal for the process.

to:
    If the request would cause the file size to exceed the soft file size
    limit for the process, the request shall fail and the implementation
    shall generate the SIGXFSZ signal for the thread.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-10-14 05:07 philip-guentherNew Issue                                    
2016-10-14 05:07 philip-guentherName                      => Philip Guenther 
2016-10-14 05:07 philip-guentherOrganization              => OpenBSD         
2016-10-14 05:07 philip-guentherSection                   => truncate        
2016-10-14 05:07 philip-guentherPage Number               => 2178            
2016-10-14 05:07 philip-guentherLine Number               => 69754           
======================================================================


Reply via email to