[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RP] exec exec
From: |
Joshua Neuheisel |
Subject: |
Re: [RP] exec exec |
Date: |
Wed Apr 21 12:43:00 2004 |
From: "twb"
Subject: [RP] exec exec
> When exec'ing from RP, if your add 'exec' after the last semicolon you
> can avoid having a shell process lying around for every emacs and
> xterm you start.
>
> E.g. bind C-c exec exec xterm, bind C-d exec cd /alt/wget; exec dillo
>
> There is a noticeable overhead in startup times.
You might be able to solve this problem at a systemic level by using bash.
When compiled with the ONESHOT option (which is the default), bash won't
fork when executed with one "-c" option. It'll just do an exec, so you
don't have rouge shell processes running all over the place. Also, my
/bin/sh is just a symbolic link to /bin/bash. This saves a lot of time, not
just in RP, but everywhere shell scripts are executed.
Joshua
P.S. Don't forget to do "exec ratpoison", not just "ratpoison" in your
xinitrc file. This will also save you one process.
- [RP] exec exec, twb, 2004/04/20
- Re: [RP] exec exec,
Joshua Neuheisel <=