Skip to content

Commit 5f54075

Browse files
SteveL-MSFTTravisEz13
authored andcommitted
replace the word hang with something more appropriate (#5358)
1 parent 906d0a5 commit 5f54075

24 files changed

Lines changed: 33 additions & 33 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ For more information on this, we invite you to read [this blog post explaining P
447447

448448
### Remoting
449449

450-
- Fixed hang when the SSH client abruptly terminates. (#4123)
450+
- Fixed PowerShell not responding when the SSH client abruptly terminates. (#4123)
451451

452452
### Documentation
453453

@@ -778,7 +778,7 @@ We made a number of fixes to the progress bar rendering and the `ProgressRecord`
778778

779779
- Add '-Title' to 'Get-Credential' and unify the prompt experience
780780
- Update dependency list for PowerShell Core on Linux and OS X
781-
- Fix 'powershell -Command -' to not hang and to not ignore the last command
781+
- Fix 'powershell -Command -' to not stop responding and to not ignore the last command
782782
- Fix binary operator tab completion
783783
- Enable 'ConvertTo-Html' in PowerShell Core
784784
- Remove most Maximum* capacity variables

src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ protected bool VerifyInternetExplorerAvailable(bool checkComObject)
614614
if (!isInternetExplorerConfigurationComplete)
615615
{
616616
// Verify that if IE is installed, it has been through the RunOnce check.
617-
// Otherwise, the call will hang waiting for users to go through First Run
617+
// Otherwise, the call will stop responding waiting for users to go through First Run
618618
// personalization.
619619
using (RegistryKey key = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Internet Explorer\\Main"))
620620
{

src/System.Management.Automation/engine/ComInterop/IDispatchComObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace System.Management.Automation.ComInterop
6666
/// an instance of BoundDispEvent class. This class has InPlaceAdd and
6767
/// InPlaceSubtract operators defined. Calling InPlaceAdd operator will:
6868
/// 1. An instance of ComEventSinksContainer class is created (unless
69-
/// RCW already had one). This instance is hanged off the RCW in attempt
69+
/// RCW already had one). This instance is associated to the RCW in attempt
7070
/// to bind the lifetime of event sinks to the lifetime of the RCW itself,
7171
/// meaning event sink will be collected once the RCW is collected (this
7272
/// is the same way event sinks lifetime is controlled by PIAs).

src/System.Management.Automation/engine/CommandCompletion/PseudoParameterBinder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ private void CreateBindingResultForSyntacticBind(CommandAst commandAst)
664664
}
665665
}
666666

667-
// Catch any hanging parameters at the end of the command
667+
// Catch any extra parameters at the end of the command
668668
if (currentParameter != null)
669669
{
670670
// Assume it was a switch

src/System.Management.Automation/engine/EventManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ protected internal override void ProcessNewEvent(PSEventArgs newEvent,
991991
// invocation to the current runspace, we took dependency on eventing infrastructure and
992992
// this required ensuring the event and associated action be processed in the current thread
993993
// synchronously. The below while loop was added for that (win8: 530495). However, fix for
994-
// 530495 resulted in hang for icm | % { icm } case and dynamic event/subscriptions scenarios.
994+
// 530495 resulted in not responding for icm | % { icm } case and dynamic event/subscriptions scenarios.
995995
// To overcome that, changed "processSynchronously" parameter to "processInCurrentThread" and added
996996
// a new parameter "waitForCompletionWhenInCurrentThread" to trigger blocking for ScriptBlock
997997
// case.

src/System.Management.Automation/engine/Modules/RemoveModuleCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ protected override void ProcessRecord()
137137
Dictionary<PSModuleInfo, List<PSModuleInfo>> actualModulesToRemove = new Dictionary<PSModuleInfo, List<PSModuleInfo>>();
138138

139139
// We want to remove the modules starting from the nested modules
140-
// If we start from the parent module, the nested modules do not get removed and are left hanging in the parent modules's sessionstate.
140+
// If we start from the parent module, the nested modules do not get removed and are left orphaned in the parent modules's sessionstate.
141141
foreach (var entry in modulesToRemove)
142142
{
143143
List<PSModuleInfo> moduleList = new List<PSModuleInfo>();

src/System.Management.Automation/engine/debugger/debugger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3403,7 +3403,7 @@ private DebuggerCommandResults ProcessCommandForActiveDebugger(PSCommand command
34033403
(command.Commands[0].CommandText.IndexOf(".EnterNestedPrompt()", StringComparison.OrdinalIgnoreCase) > 0))
34043404
{
34053405
// Prevent a host EnterNestedPrompt() call from occuring in an active debugger.
3406-
// Host nested prompt makes no sense in this case and can cause hangs depending on host implementation.
3406+
// Host nested prompt makes no sense in this case and can cause host to stop responding depending on host implementation.
34073407
throw new PSNotSupportedException();
34083408
}
34093409

src/System.Management.Automation/engine/hostifaces/PowerShell.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3283,7 +3283,7 @@ private void DoRemainingBatchCommands(PSDataCollection<PSObject> objs)
32833283
BatchInvocationContext context = new BatchInvocationContext(ExtraCommands[i], objs);
32843284

32853285
// Queue a batch work item here.
3286-
// Calling CoreInvokeAsync / CoreInvoke here directly doesn't work and causes the thread to hang.
3286+
// Calling CoreInvokeAsync / CoreInvoke here directly doesn't work and causes the thread to not respond.
32873287
ThreadPool.QueueUserWorkItem(new WaitCallback(BatchInvocationWorkItem), context);
32883288
context.Wait();
32893289
}
@@ -4037,7 +4037,7 @@ internal void SetStateChanged(PSInvocationStateInfo stateInfo)
40374037

40384038
// This object can be disconnected even if "BeginStop" was called if it is a remote object
40394039
// and robust connections is retrying a failed network connection.
4040-
// In this case release the stop wait handle to prevent hangs.
4040+
// In this case release the stop wait handle to prevent not responding.
40414041
if (tempStopAsyncResult != null)
40424042
{
40434043
tempStopAsyncResult.SetAsCompleted(null);

src/System.Management.Automation/engine/remoting/client/Job2.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ public override void StartJob()
767767
_tracer.WriteMessage(TraceClassName, "StartJob", Guid.Empty, this, "Entering method", null);
768768
s_structuredTracer.BeginContainerParentJobExecution(InstanceId);
769769

770-
// If parent contains no child jobs then this method will hang. Throw error in this case.
770+
// If parent contains no child jobs then this method will not respond. Throw error in this case.
771771
if (ChildJobs.Count == 0)
772772
{
773773
throw PSTraceSource.NewInvalidOperationException(RemotingErrorIdStrings.JobActionInvalidWithNoChildJobs);
@@ -951,7 +951,7 @@ public override void ResumeJob()
951951
AssertNotDisposed();
952952
_tracer.WriteMessage(TraceClassName, "ResumeJob", Guid.Empty, this, "Entering method", null);
953953

954-
// If parent contains no child jobs then this method will hang. Throw error in this case.
954+
// If parent contains no child jobs then this method will not respond. Throw error in this case.
955955
if (ChildJobs.Count == 0)
956956
{
957957
throw PSTraceSource.NewInvalidOperationException(RemotingErrorIdStrings.JobActionInvalidWithNoChildJobs);
@@ -1188,7 +1188,7 @@ public override void UnblockJob()
11881188
AssertNotDisposed();
11891189
_tracer.WriteMessage(TraceClassName, "UnblockJob", Guid.Empty, this, "Entering method", null);
11901190

1191-
// If parent contains no child jobs then this method will hang. Throw error in this case.
1191+
// If parent contains no child jobs then this method will not respond. Throw error in this case.
11921192
if (ChildJobs.Count == 0)
11931193
{
11941194
throw PSTraceSource.NewInvalidOperationException(RemotingErrorIdStrings.JobActionInvalidWithNoChildJobs);
@@ -1353,7 +1353,7 @@ private void SuspendJobInternal(bool? force, string reason)
13531353
AssertNotDisposed();
13541354
_tracer.WriteMessage(TraceClassName, "SuspendJob", Guid.Empty, this, "Entering method", null);
13551355

1356-
// If parent contains no child jobs then this method will hang. Throw error in this case.
1356+
// If parent contains no child jobs then this method will not respond. Throw error in this case.
13571357
if (ChildJobs.Count == 0)
13581358
{
13591359
throw PSTraceSource.NewInvalidOperationException(RemotingErrorIdStrings.JobActionInvalidWithNoChildJobs);
@@ -1526,7 +1526,7 @@ private void StopJobInternal(bool? force, string reason)
15261526
AssertNotDisposed();
15271527
_tracer.WriteMessage(TraceClassName, "StopJob", Guid.Empty, this, "Entering method", null);
15281528

1529-
// If parent contains no child jobs then this method will hang. Throw error in this case.
1529+
// If parent contains no child jobs then this method will not respond. Throw error in this case.
15301530
if (ChildJobs.Count == 0)
15311531
{
15321532
throw PSTraceSource.NewInvalidOperationException(RemotingErrorIdStrings.JobActionInvalidWithNoChildJobs);

src/System.Management.Automation/engine/remoting/client/clientremotesessionprotocolstatemachine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private void ProcessEvents()
125125
private void HandleFatalError(Exception ex)
126126
{
127127
// Event handlers should not throw exceptions. But if they do we need to
128-
// handle them here to prevent the state machine from hanging when there are pending
128+
// handle them here to prevent the state machine from not responding when there are pending
129129
// events to process.
130130

131131
// Enqueue a fatal error event if such an exception occurs; clear all existing events.. we are going to terminate the session

0 commit comments

Comments
 (0)