shell doesn't prompt to kill background ops on exit

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • Fully Compatible
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
      

              Assignee:
              DO NOT USE - Backlog - Platform Team
              Reporter:
              Aaron Staple (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: