[SERVER-5559] shell doesn't prompt to kill background ops on exit Created: 10/Apr/12  Updated: 29/Jan/18  Resolved: 26/May/17

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Won't Fix Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-5485 implement thread safety for shell uti... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

If operations are running in a background thread, the user is not prompted to kill them when they ctrl-c the shell.

Aaron-Staples-MacBook-Pro:mongo10 aaron$ ./mongo
MongoDB shell version: 2.1.1-pre-
connecting to: test
> db.c.save( {} )
> t = fork( function() { db.c.count( { $where:function() { while( 1 ); } } ) } );
{
	"init" : function () { [native code] },
	"start" : function () { [native code] },
	"join" : function () { [native code] },
	"returnData" : function () { [native code] }
}
> t.start()
connecting to: test
> ^C
bye


Generated at Thu Feb 08 03:09:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.