3 ms·
> the newly started program could inherit all sorts of things from your login session. It might have some random current directory, it might have stray file des
by kazinator 2y ago
> the newly started program could inherit all sorts of things from your login session. It might have some random current directory, it might have stray file descriptors that were inherited from your shell or login environment, its standard input, output, and error would be connected to your terminal, and it would have a controlling terminal, leaving it exposed to various bad things happening to it when, for example, you logged out (which often would deliver a SIGHUP to it).
These things still matter when the program is run from a boot script or init daemon, rather than a login session!