3 ms·
Next piece of development; - pw currently misbehaves if you Ctrl-Z suspend it and then try "bg". It doesn't handle the SIGTTOU signal telling it that it's not
by kazinator 5y ago
Next piece of development;
- pw currently misbehaves if you Ctrl-Z suspend it and then try "bg". It doesn't handle the SIGTTOU signal telling it that it's not allowed to send to the TTY due to being in the background. (It won't die, but you may have to suspend it again and do "fg").
- the ideal behavior would be: if we Ctrl-Z, bg, the program runs and just reads the pipe in the background.
With that functionality, we can take any program that spews logs onto standard output and just throw it into the background indefinitely without having it block.
$ spewing-program | pw &
[1] 123
$ bg
[1]+ spewing-program | pw &
To see the latest bit of logging from the program, we foreground it.
A program which produces detailed logging that cannot be turned off or adjusted dynamically will benefit from this.
- dundarious 5y agoI would recommend adding a license as well.
- kazinator 5y agoThanks for pointing that out! I could have sworn I had put a BSD copyright block at the top, but now I see it's not there. I did that to a different program and misremembered. No, scratch that; I did that in the man page source code, but forgot the C source file. [Issue fixed now.]