Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Pid or not pid



>> Some of the code in execcmd() is getting executed in the parent rather
>> than the child, presumably since the last rearrangement... in
>> particular, nice(5) is getting called if fork() returned a non-zero
>> pid, i.e. in the parent (line 1350 of exec.c).  This means each time a
>> background process is forked, the parent shell has a lower priority.
>> This may be a good way to deal with process hogs, but I don't think
>> it's what's intended.
>
>err...  No I didn't intend that.  But maybe we should leave it
>as an option :-)

One has to wonder, though, whether this FG_NICE option should be on by
default.  Obviously, the maximally backward compatible choice would be
for it to be on.  (-:

-zefram



Messages sorted by: Reverse Date, Date, Thread, Author