[1003.1(2013)/Issue7+TC1 0001044]: Calling setsid as part of posix_spawn

2023-04-19 Thread Austin Group Bug Tracker via austin-group-l at The Open Group


The following issue has been set as RELATED TO issue 0001674. 
== 
https://www.austingroupbugs.net/view.php?id=1044 
== 
Reported By:daurnimator
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   1044
Category:   System Interfaces
Type:   Enhancement Request
Severity:   Editorial
Priority:   normal
Status: Applied
Name:   Daurnimator 
Organization:
User Reference:  
Section:posix_spawn 
Page Number:0 
Line Number:0 
Interp Status:  --- 
Final Accepted Text:   
https://www.austingroupbugs.net/view.php?id=1044#c3650 
Resolution: Accepted As Marked
Fixed in Version:   
== 
Date Submitted: 2016-04-14 01:07 UTC
Last Modified:  2023-04-19 17:06 UTC
== 
Summary:Calling setsid as part of posix_spawn
==
Relationships   ID  Summary
--
related to  0001674 may posix_spawnp() fail with ENOEXEC?
related to  0001208 calling chdir as part of posix_spawn
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2016-04-14 01:07 daurnimatorNew Issue
2016-04-14 01:07 daurnimatorName  => Daurnimator 
2016-04-14 01:07 daurnimatorSection   => posix_spawn 
2016-04-14 01:07 daurnimatorPage Number   => 0   
2016-04-14 01:07 daurnimatorLine Number   => 0   
2016-04-14 01:43 daurnimatorIssue Monitored: daurnimator
2016-08-19 08:26 Florian Weimer Issue Monitored: Florian Weimer 
  
2017-03-23 17:06 geoffclare Note Added: 0003650  
2017-03-23 17:09 geoffclare Note Edited: 0003650 
2017-03-30 15:13 geoffclare Interp Status => --- 
2017-03-30 15:13 geoffclare Final Accepted Text   =>
https://www.austingroupbugs.net/view.php?id=1044#c3650
2017-03-30 15:13 geoffclare Status   New => Resolved 
2017-03-30 15:13 geoffclare Resolution   Open => Accepted As
Marked
2017-03-30 15:13 geoffclare Tag Attached: issue8 
2017-04-05 02:50 daurnimatorNote Added: 0003658  
2017-04-07 10:52 geoffclare Note Edited: 0003650 
2017-04-07 10:54 geoffclare Note Added: 0003665  
2017-04-07 12:23 daurnimatorNote Added: 0003666  
2018-09-07 18:39 eblake Relationship added   related to 0001208  
2020-04-16 08:52 geoffclare Status   Resolved => Applied 
2023-04-19 17:06 eblake Relationship added   related to 0001674  
==




[1003.1(2013)/Issue7+TC1 0001044]: Calling setsid as part of posix_spawn

2020-04-16 Thread Austin Group Bug Tracker


The following issue has a resolution that has been APPLIED. 
== 
https://austingroupbugs.net/view.php?id=1044 
== 
Reported By:daurnimator
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   1044
Category:   System Interfaces
Type:   Enhancement Request
Severity:   Editorial
Priority:   normal
Status: Applied
Name:   Daurnimator 
Organization:
User Reference:  
Section:posix_spawn 
Page Number:0 
Line Number:0 
Interp Status:  --- 
Final Accepted Text:https://austingroupbugs.net/view.php?id=1044#c3650 
Resolution: Accepted As Marked
Fixed in Version:   
== 
Date Submitted: 2016-04-14 01:07 UTC
Last Modified:  2020-04-16 08:52 UTC
== 
Summary:Calling setsid as part of posix_spawn
==
Relationships   ID  Summary
--
related to  0001208 calling chdir as part of posix_spawn
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2016-04-14 01:07 daurnimatorNew Issue
2016-04-14 01:07 daurnimatorName  => Daurnimator 
2016-04-14 01:07 daurnimatorSection   => posix_spawn 
2016-04-14 01:07 daurnimatorPage Number   => 0   
2016-04-14 01:07 daurnimatorLine Number   => 0   
2016-04-14 01:43 daurnimatorIssue Monitored: daurnimator
2016-08-19 08:26 Florian Weimer Issue Monitored: Florian Weimer 
  
2017-03-23 17:06 geoffclare Note Added: 0003650  
2017-03-23 17:09 geoffclare Note Edited: 0003650 
2017-03-30 15:13 geoffclare Interp Status => --- 
2017-03-30 15:13 geoffclare Final Accepted Text   =>
https://austingroupbugs.net/view.php?id=1044#c3650
2017-03-30 15:13 geoffclare Status   New => Resolved 
2017-03-30 15:13 geoffclare Resolution   Open => Accepted As
Marked
2017-03-30 15:13 geoffclare Tag Attached: issue8 
2017-04-05 02:50 daurnimatorNote Added: 0003658  
2017-04-07 10:52 geoffclare Note Edited: 0003650 
2017-04-07 10:54 geoffclare Note Added: 0003665  
2017-04-07 12:23 daurnimatorNote Added: 0003666  
2018-09-07 18:39 eblake Relationship added   related to 0001208  
2020-04-16 08:52 geoffclare Status   Resolved => Applied 
==




[1003.1(2013)/Issue7+TC1 0001044]: Calling setsid as part of posix_spawn

2018-09-07 Thread Austin Group Bug Tracker


The following issue has been set as RELATED TO issue 0001208. 
== 
http://austingroupbugs.net/view.php?id=1044 
== 
Reported By:daurnimator
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   1044
Category:   System Interfaces
Type:   Enhancement Request
Severity:   Editorial
Priority:   normal
Status: Resolved
Name:   Daurnimator 
Organization:
User Reference:  
Section:posix_spawn 
Page Number:0 
Line Number:0 
Interp Status:  --- 
Final Accepted Text:http://austingroupbugs.net/view.php?id=1044#c3650 
Resolution: Accepted As Marked
Fixed in Version:   
== 
Date Submitted: 2016-04-14 01:07 UTC
Last Modified:  2017-04-07 12:23 UTC
== 
Summary:Calling setsid as part of posix_spawn
==
Relationships   ID  Summary
--
related to  0001208 calling chdir as part of posix_spawn
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2016-04-14 01:07 daurnimatorNew Issue
2016-04-14 01:07 daurnimatorName  => Daurnimator 
2016-04-14 01:07 daurnimatorSection   => posix_spawn 
2016-04-14 01:07 daurnimatorPage Number   => 0   
2016-04-14 01:07 daurnimatorLine Number   => 0   
2016-04-14 01:43 daurnimatorIssue Monitored: daurnimator
2016-08-19 08:26 Florian Weimer Issue Monitored: Florian Weimer 
  
2017-03-23 17:06 geoffclare Note Added: 0003650  
2017-03-23 17:09 geoffclare Note Edited: 0003650 
2017-03-30 15:13 geoffclare Interp Status => --- 
2017-03-30 15:13 geoffclare Final Accepted Text   =>
http://austingroupbugs.net/view.php?id=1044#c3650
2017-03-30 15:13 geoffclare Status   New => Resolved 
2017-03-30 15:13 geoffclare Resolution   Open => Accepted As
Marked
2017-03-30 15:13 geoffclare Tag Attached: issue8 
2017-04-05 02:50 daurnimatorNote Added: 0003658  
2017-04-07 10:52 geoffclare Note Edited: 0003650 
2017-04-07 10:54 geoffclare Note Added: 0003665  
2017-04-07 12:23 daurnimatorNote Added: 0003666  
2018-09-07 18:39 eblake Relationship added   related to 0001208  
==




Re: [1003.1(2013)/Issue7+TC1 0001044]: Calling setsid as part of posix_spawn

2017-04-05 Thread Don Cragun
Hi Geoff,
I like the idea of updating the example implementation to add code
to match the current specification, but I don't like the idea of
changing the value assigned to POSIX_SPAWN_RESETIDS.  The list of
#defines on P3695, L126575-126580 already contains several
definitions that are not in alphabetic order, so, instead of
changing reassigning the value of POSIX_SPAWN_RESETIDS in the
current standard to POSIX_SPAWN_SETSID.  I would prefer to have it
keep its current value and just add:
   #define POSIX_SPAWN_SETSID   0x40
after L126580.

 - Don

> On Apr 5, 2017, at 1:29 AM, Geoff Clare  wrote:
> 
>> -- 
>> (0003658) daurnimator (reporter) - 2017-04-05 02:50
>> http://austingroupbugs.net/view.php?id=1044#c3658 
>> -- 
>> I just noticed the example implementation of posix_spawn in "B.3.3 Examples
>> for Spawn". Should we also update that? 
> 
> Yes, I think we should.  If nobody objects, I will edit my bugnote 3650
> to add the following:
> 
> On page 3695 line 126580 section B.3.3 Examples for Spawn, change:
> 
>#define POSIX_SPAWN_RESETIDS 0x20
> 
> to:
> 
>#define POSIX_SPAWN_SETSID   0x20
>#define POSIX_SPAWN_RESETIDS 0x40
> 
> 
> On page 3696 line 126646 section B.3.3 Examples for Spawn, change:
> 
>/* Worry about process group */
> 
> to:
> 
>/* Worry about creating a new session */
>if (attrp->posix_attr_flags & POSIX_SPAWN_SETSID)
>{
>   /* Create a new session */
>   if (setsid() == -1)
>   {
>   /* Failed */
>   _exit(127);
>   }
>}
> 
>/* Worry about process group */
> 
> 
> Between page 3696 line 126653 and page 3699 line 126791, change all
> occurrences of:
> 
>exit(127);
> 
> to:
> 
>_exit(127);
> 
> 
> The editors may also wish to consider changing all the "Worry about ..."
> comments in this code example to "Handle ...".
> 
> -- 
> Geoff Clare 
> The Open Group, Apex Plaza, Forbury Road, Reading, RG1 1AX, England
> 




[1003.1(2013)/Issue7+TC1 0001044]: Calling setsid as part of posix_spawn

2017-04-04 Thread Austin Group Bug Tracker

A NOTE has been added to this issue. 
== 
http://austingroupbugs.net/view.php?id=1044 
== 
Reported By:daurnimator
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   1044
Category:   System Interfaces
Type:   Enhancement Request
Severity:   Editorial
Priority:   normal
Status: Resolved
Name:   Daurnimator 
Organization:
User Reference:  
Section:posix_spawn 
Page Number:0 
Line Number:0 
Interp Status:  --- 
Final Accepted Text:http://austingroupbugs.net/view.php?id=1044#c3650 
Resolution: Accepted As Marked
Fixed in Version:   
== 
Date Submitted: 2016-04-14 01:07 UTC
Last Modified:  2017-04-05 02:50 UTC
== 
Summary:Calling setsid as part of posix_spawn
== 

-- 
 (0003658) daurnimator (reporter) - 2017-04-05 02:50
 http://austingroupbugs.net/view.php?id=1044#c3658 
-- 
I just noticed the example implementation of posix_spawn in "B.3.3 Examples
for Spawn". Should we also update that? 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2016-04-14 01:07 daurnimatorNew Issue
2016-04-14 01:07 daurnimatorName  => Daurnimator 
2016-04-14 01:07 daurnimatorSection   => posix_spawn 
2016-04-14 01:07 daurnimatorPage Number   => 0   
2016-04-14 01:07 daurnimatorLine Number   => 0   
2016-04-14 01:43 daurnimatorIssue Monitored: daurnimator
2016-08-19 08:26 Florian Weimer Issue Monitored: Florian Weimer 
  
2017-03-23 17:06 geoffclare Note Added: 0003650  
2017-03-23 17:09 geoffclare Note Edited: 0003650 
2017-03-30 15:13 geoffclare Interp Status => --- 
2017-03-30 15:13 geoffclare Final Accepted Text   =>
http://austingroupbugs.net/view.php?id=1044#c3650
2017-03-30 15:13 geoffclare Status   New => Resolved 
2017-03-30 15:13 geoffclare Resolution   Open => Accepted As
Marked
2017-03-30 15:13 geoffclare Tag Attached: issue8 
2017-04-05 02:50 daurnimatorNote Added: 0003658  
==




[1003.1(2013)/Issue7+TC1 0001044]: Calling setsid as part of posix_spawn

2017-03-23 Thread Austin Group Bug Tracker

A NOTE has been added to this issue. 
== 
http://austingroupbugs.net/view.php?id=1044 
== 
Reported By:daurnimator
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   1044
Category:   System Interfaces
Type:   Enhancement Request
Severity:   Editorial
Priority:   normal
Status: New
Name:   Daurnimator 
Organization:
User Reference:  
Section:posix_spawn 
Page Number:0 
Line Number:0 
Interp Status:  --- 
Final Accepted Text: 
== 
Date Submitted: 2016-04-14 01:07 UTC
Last Modified:  2017-03-23 17:06 UTC
== 
Summary:Calling setsid as part of posix_spawn
== 

-- 
 (0003650) geoffclare (manager) - 2017-03-23 17:06
 http://austingroupbugs.net/view.php?id=1044#c3650 
-- 
Proposed changes (2016 edition page and line numbers):

On page 341 line 11579 section , add
(unshaded):POSIX_SPAWN_SETSID
On page 1453 line 48267 section posix_spawn(), change:If the
POSIX_SPAWN_SETPGROUP flag is not set ...to:If
neither the POSIX_SPAWN_SETPGROUP flag nor the POSIX_SPAWN_SETSID flag is
set ...
On page 1454 line 48266 section posix_spawn(), add two new
paragraphs:If the POSIX_SPAWN_SETSID flag is set in the
spawn-flags attribute of the object referenced by attrp, the
child process shall be the session leader of a new session, shall be the
process group leader of a new process group, and shall have no controlling
terminal. The process group ID of the child process shall be set equal to
the process ID of the child process. The child process shall be the only
process in the new process group and the only process in the new session.

If both the POSIX_SPAWN_SETPGROUP flag and the POSIX_SPAWN_SETSID flag are
set in the spawn-flags attribute of the object referenced by
attrp, the behavior is unspecified.
On page 1455 line 48335 section posix_spawn(), add a new
paragraph:If POSIX_SPAWN_SETSID is set in the
spawn-flags attribute of the object referenced by attrp, and
posix_spawn() or posix_spawnp() fails while creating the new
session, changing the child's session ID, or changing the child’s process
group, an error value shall be returned as described by setsid()
(or, if the error occurs after the calling process successfully returns,
the child process shall exit with exit status 127).
On page 1470 line 48847-48852 section posix_spawnattr_getflags(), add
POSIX_SPAWN_SETSID (unshaded) to the list of flags and reorder the list to
be in alphabetical order. 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2016-04-14 01:07 daurnimatorNew Issue
2016-04-14 01:07 daurnimatorName  => Daurnimator 
2016-04-14 01:07 daurnimatorSection   => posix_spawn 
2016-04-14 01:07 daurnimatorPage Number   => 0   
2016-04-14 01:07 daurnimatorLine Number   => 0   
2016-04-14 01:43 daurnimatorIssue Monitored: daurnimator
2016-08-19 08:26 Florian Weimer Issue Monitored: Florian Weimer 
  
2017-03-23 17:06 geoffclare Note Added: 0003650  
==