Comment 67 for bug 678421

Revision history for this message
Daniel Hahler (blueyed) wrote : Re: [Bug 678421] Re: Error message for a faulty ~/.profile script

On 25.02.2015 23:42, Gunnar Hjalmarsson wrote:

> Thanks for your comments!
>
> On 2015-02-25 19:56, Daniel Hahler wrote:
>> set -x
>> exec 1>>$logfile
>> exec 2>>$logfile
>
> Really using the "exec" command in ~/.profile would stop the execution
> of the main process (/usr/sbin/lightdm-session), so I suppose your
> ~/.profile did not literally contain the above lines. To understand if
> it was a false positive, you need to tell us more.

It does not stop the execution / replace the current process, but only
redirects the file descriptors when used like this (1 (stdout) and 2 (stderr)).

It's fine like it is and expected - just wanted to provide it as feedback
nonetheless.

Cheers,
Daniel.

--
http://daniel.hahler.de/