On Thu, Sep 19, 2013 at 11:27:14AM +0530, Mandeep Sandhu wrote:
> If I start a program in the background mode (like ./prog &) and exit the
> shell (Ctrl+D), I see the following message:
> 
> "There are stopped jobs. A second attempt to exit will enforce their
> termination."
> 
> If I exit again, immediately, it'll quit the shell. However, the above
> message made me think that my background job will be terminated as well!
> 
> However, using 'ps' o/p I could verify that the program was running even
> after exit and was re-parented to init (?), I think.
> 
> Why do we show that message and what does it really mean? I mean the
> background job is _still_ running, then why the message? Or am I missing
> something obvious?

i can confirm the behavior.

i believe the message is in error though. because the job in the
background is not actually stopped. there should be a different message
instead or fish should just exit.

apart from that, the behavior is the same as bash. stopped jobs get a
notice, and the second time bash exits and the stopped jobs are killed.
jobs running in the background are reparented without a warning.

greetings, martin.
-- 
eKita                   -   the online platform for your entire academic life
hackerspace beijing     -                                    http://qike.info
--
chief engineer                                                       eKita.co
pike programmer      pike.lysator.liu.se                          caudium.net
foresight developer  realss.com                            foresightlinux.org
unix sysadmin        trainer           developer            societyserver.org
Martin Bähr          working in china        http://societyserver.org/mbaehr/

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to