Re:It's all fun and games until someone [XOFF]
by jessaustin on Sunday June 21, 2015 @09:27AM
(#9753340)
I love ctrl-Z, but I think of it more as "suspend" than "background". After all, a ctrl-Z'd process isn't really doing anything. If you want to run such in the backround, just use bg, which is precisely analogous to fg.
[ Parent
| on HN ]
Re:It's all fun and games until someone [XOFF]
by fit2rule on Sunday June 21, 2015 @09:59AM
(#9753451)
Yes, you're probably right. It disconnects the console i/o from the process fd's, and so the process sits there blocking - and when you fg, the fd's get re-attached and things kick back into place .. while bg'ing the process, I think, re-attaches it to a new thread completely? Ah well, the details are out there somewhere ..