comparison man/building.texi @ 57154:fe97fe43464a

(Compilation): Explain how to make a silent subprocess that won't be terminated. Explain compilation-environment.
author Richard M. Stallman <rms@gnu.org>
date Mon, 20 Sep 2004 15:26:00 +0000
parents 875c4c833a38
children e256f5578609 0796fc36c2bd
comparison
equal deleted inserted replaced
57153:497f0d2ca551 57154:fe97fe43464a
125 @example 125 @example
126 (sleep 10; echo 2nd)& pid=$! # @r{Record pid of subprocess} 126 (sleep 10; echo 2nd)& pid=$! # @r{Record pid of subprocess}
127 echo first message 127 echo first message
128 wait $pid # @r{Wait for subprocess} 128 wait $pid # @r{Wait for subprocess}
129 @end example 129 @end example
130
131 If the background process does not output to the compilation buffer,
132 so you only need to prevent it from being killed when the main
133 compilation process terminates, this is sufficient:
134
135 @example
136 nohup @var{command}; sleep 1
137 @end example
138
139 @vindex compilation-environment
140 You can control the environment passed to the compilation command
141 with the variable @code{compilation-environment}. Its value is a list
142 of environment variable settings; each element should be a string of
143 the form @code{"@var{envvarname}=@var{value}"}. These environment
144 variable settings override the usual ones.
130 145
131 @node Grep Searching 146 @node Grep Searching
132 @section Searching with Grep under Emacs 147 @section Searching with Grep under Emacs
133 148
134 @findex grep 149 @findex grep