Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
3 edited body
source | link

I get the message There are stopped jobs. when iI try to exit a bash shell sometimes. Here is a reproducible scenario in python 2.x:

  • ctrl+c is handled by the interpreter as an exception.
  • ctrl+z 'stops' the process.
  • ctrl+d exits python for reals.

Here is some real-world terminal output:

example_user@example_server:~$ python
Python 2.7.3 (default, Sep 26 2013, 20:03:06) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

ctrl+z

[1]+  Stopped                 python
example_user@example_server:~$ exit
logout
There are stopped jobs.

Bash did not exit, I must exit again to exit the bash shell.

  • Q: What is a 'stopped job', or what does this mean?
  • Q: Can a stopped process be resumed?
  • Q: Does the first exit kill the stopped jobs?
  • Q: Is there a way to exit the shell the first time? (without entering exit twice)

I get the message There are stopped jobs. when i try to exit a bash shell sometimes. Here is a reproducible scenario in python 2.x:

  • ctrl+c is handled by the interpreter as an exception.
  • ctrl+z 'stops' the process.
  • ctrl+d exits python for reals.

Here is some real-world terminal output:

example_user@example_server:~$ python
Python 2.7.3 (default, Sep 26 2013, 20:03:06) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

ctrl+z

[1]+  Stopped                 python
example_user@example_server:~$ exit
logout
There are stopped jobs.

Bash did not exit, I must exit again to exit the bash shell.

  • Q: What is a 'stopped job', or what does this mean?
  • Q: Can a stopped process be resumed?
  • Q: Does the first exit kill the stopped jobs?
  • Q: Is there a way to exit the shell the first time? (without entering exit twice)

I get the message There are stopped jobs. when I try to exit a bash shell sometimes. Here is a reproducible scenario in python 2.x:

  • ctrl+c is handled by the interpreter as an exception.
  • ctrl+z 'stops' the process.
  • ctrl+d exits python for reals.

Here is some real-world terminal output:

example_user@example_server:~$ python
Python 2.7.3 (default, Sep 26 2013, 20:03:06) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

ctrl+z

[1]+  Stopped                 python
example_user@example_server:~$ exit
logout
There are stopped jobs.

Bash did not exit, I must exit again to exit the bash shell.

  • Q: What is a 'stopped job', or what does this mean?
  • Q: Can a stopped process be resumed?
  • Q: Does the first exit kill the stopped jobs?
  • Q: Is there a way to exit the shell the first time? (without entering exit twice)
2 removed myname@hostname from question
source | link

I get the message There are stopped jobs. when i try to exit a bash shell sometimes. Here is a reproducible scenario in python 2.x:

  • ctrl+c is handled by the interpreter as an exception.
  • ctrl+z 'stops' the process.
  • ctrl+d exits python for reals.

Here is some real-world terminal output:

example_user@example_server:~$ python
Python 2.7.3 (default, Sep 26 2013, 20:03:06) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

ctrl+z

[1]+  Stopped                 python
dylan@developmentexample_user@example_server:~$ exit
logout
There are stopped jobs.

Bash did not exit, I must exit again to exit the bash shell.

  • Q: What is a 'stopped job', or what does this mean?
  • Q: Can a stopped process be resumed?
  • Q: Does the first exit kill the stopped jobs?
  • Q: Is there a way to exit the shell the first time? (without entering exit twice)

I get the message There are stopped jobs. when i try to exit a bash shell sometimes. Here is a reproducible scenario in python 2.x:

  • ctrl+c is handled by the interpreter as an exception.
  • ctrl+z 'stops' the process.
  • ctrl+d exits python for reals.

Here is some real-world terminal output:

example_user@example_server:~$ python
Python 2.7.3 (default, Sep 26 2013, 20:03:06) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

ctrl+z

[1]+  Stopped                 python
dylan@development:~$ exit
logout
There are stopped jobs.

Bash did not exit, I must exit again to exit the bash shell.

  • Q: What is a 'stopped job', or what does this mean?
  • Q: Can a stopped process be resumed?
  • Q: Does the first exit kill the stopped jobs?
  • Q: Is there a way to exit the shell the first time? (without entering exit twice)

I get the message There are stopped jobs. when i try to exit a bash shell sometimes. Here is a reproducible scenario in python 2.x:

  • ctrl+c is handled by the interpreter as an exception.
  • ctrl+z 'stops' the process.
  • ctrl+d exits python for reals.

Here is some real-world terminal output:

example_user@example_server:~$ python
Python 2.7.3 (default, Sep 26 2013, 20:03:06) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

ctrl+z

[1]+  Stopped                 python
example_user@example_server:~$ exit
logout
There are stopped jobs.

Bash did not exit, I must exit again to exit the bash shell.

  • Q: What is a 'stopped job', or what does this mean?
  • Q: Can a stopped process be resumed?
  • Q: Does the first exit kill the stopped jobs?
  • Q: Is there a way to exit the shell the first time? (without entering exit twice)
1
source | link

There are stopped jobs (on bash exit)

I get the message There are stopped jobs. when i try to exit a bash shell sometimes. Here is a reproducible scenario in python 2.x:

  • ctrl+c is handled by the interpreter as an exception.
  • ctrl+z 'stops' the process.
  • ctrl+d exits python for reals.

Here is some real-world terminal output:

example_user@example_server:~$ python
Python 2.7.3 (default, Sep 26 2013, 20:03:06) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

ctrl+z

[1]+  Stopped                 python
dylan@development:~$ exit
logout
There are stopped jobs.

Bash did not exit, I must exit again to exit the bash shell.

  • Q: What is a 'stopped job', or what does this mean?
  • Q: Can a stopped process be resumed?
  • Q: Does the first exit kill the stopped jobs?
  • Q: Is there a way to exit the shell the first time? (without entering exit twice)