Skip to content

Request: System.Diagnostics.Process support for CREATE_NEW_PROCESS_GROUP creation flag #20734

@weshaggard

Description

@weshaggard

API Proposal:

namespace System.Diagnostics
{
     public sealed class ProcessStartInfo
     {
          public bool CreateNewProcessGroup { get; set; }
     }
}

Usage:

var p = new System.Diagnostics.Process();
p.StartInfo.FileName = @"cmd";
p.StartInfo.CreateNewProcessGroup = true;
p.Start();

@PaulHigin commented on Wed Mar 22 2017

The Process class currently supports StartInfo class information but no process creation flags. We (PowerShell) need support for cross platform CREATE_NEW_PROCESS_GROUP creation flag to create processes outside the parent process group. This is supported in Windows and also Linux (via setpgid()) but needs to be done during process creation.


@weshaggard commented on Wed Mar 22 2017

This request is better served in the dotnet/corefx repo so moving there.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions