Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5559

shell doesn't prompt to kill background ops on exit

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

      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:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            aaron Aaron Staple
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: