1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Passenger: AgentWatcher Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>AgentWatcher Class Reference</h1><!-- doxytag: class="AgentWatcher" -->Abstract base class for watching agent processes.
<a href="#_details">More...</a>
<p>
Inherited by HelperAgentWatcher, and LoggingAgentWatcher.
<p>
<p>
<a href="classAgentWatcher-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#a9f83ed13b06ef80d0417f9c313cf61e">sendStartupInfo</a> (<a class="el" href="classPassenger_1_1MessageChannel.html">MessageChannel</a> &channel)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Send the started agent process's startup information over the given channel, to the starter process. <a href="#a9f83ed13b06ef80d0417f9c313cf61e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#982a388ed5c485ab9615c5bc0abbc71e">name</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the name of the agent that this class is watching. <a href="#982a388ed5c485ab9615c5bc0abbc71e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual pid_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#daf1c0a7104aea662d90f639066b8247">start</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Starts the agent process. <a href="#daf1c0a7104aea662d90f639066b8247"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#3da11d23ed3b1210a24844856b7f3159">startWatching</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Start watching the agent process. <a href="#3da11d23ed3b1210a24844856b7f3159"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#e65876d2cc680b739dfee02378233340">forceShutdown</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Force the agent process to shut down. <a href="#e65876d2cc680b739dfee02378233340"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#b99d4346d7b69d86db1b14206e7caadb">getErrorMessage</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">If the watcher thread has encountered an error, then the error message will be stored here. <a href="#b99d4346d7b69d86db1b14206e7caadb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="80ef9eaf1a84d994e7ba5f1507616fde"></a><!-- doxytag: member="AgentWatcher::getErrorBacktrace" ref="80ef9eaf1a84d994e7ba5f1507616fde" args="() const " -->
string </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#80ef9eaf1a84d994e7ba5f1507616fde">getErrorBacktrace</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The error backtrace, if applicable. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classPassenger_1_1FileDescriptor.html">FileDescriptor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#c0749ab103ed5d1adc81b53a7ddc93d8">getFeedbackFd</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the agent process feedback fd, or NULL if the agent process hasn't been started yet. <a href="#c0749ab103ed5d1adc81b53a7ddc93d8"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#77279925d786a774bdf097468c36af96">getExeFilename</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the filename of the agent process's executable. <a href="#77279925d786a774bdf097468c36af96"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#c6325cb940f9c25ef2f44aca00c30755">execProgram</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This method is to exec() the agent with the right arguments. <a href="#c6325cb940f9c25ef2f44aca00c30755"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#45bc0e41253a0c287e14f708f7dba1e6">sendStartupArguments</a> (pid_t <a class="el" href="classAgentWatcher.html#76de201bbc7111c01c31668211494fa8">pid</a>, <a class="el" href="classPassenger_1_1FileDescriptor.html">FileDescriptor</a> &fd)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This method is to send startup arguments to the agent process through the given file descriptor, which is the agent process's feedback fd. <a href="#45bc0e41253a0c287e14f708f7dba1e6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#4c1c454374c8916788fee166beacfb05">processStartupInfo</a> (pid_t <a class="el" href="classAgentWatcher.html#76de201bbc7111c01c31668211494fa8">pid</a>, <a class="el" href="classPassenger_1_1FileDescriptor.html">FileDescriptor</a> &fd, const vector< string > &args)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This method is to process the startup info that the agent process has sent back. <a href="#4c1c454374c8916788fee166beacfb05"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#a358a05d41db4ddab9696727849e0d4c">killAndWait</a> (pid_t <a class="el" href="classAgentWatcher.html#76de201bbc7111c01c31668211494fa8">pid</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Kill a process with SIGKILL, and attempt to kill its children too. <a href="#a358a05d41db4ddab9696727849e0d4c"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">pid_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#76de201bbc7111c01c31668211494fa8">pid</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">PID of the process we're watching. <a href="#76de201bbc7111c01c31668211494fa8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#c4fa4122858073a1e3e1d96ce2ade6f2">threadExceptionMessage</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">If the watcher thread threw an uncaught exception then its information will be stored here so that the main thread can check whether a watcher encountered an error. <a href="#c4fa4122858073a1e3e1d96ce2ade6f2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classPassenger_1_1FileDescriptor.html">FileDescriptor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#a3eba8fe19117a84764f5f653a03612d">feedbackFd</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The agent process's feedback fd. <a href="#a3eba8fe19117a84764f5f653a03612d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="22ad2ee317c4e254833ab07f377ed7fd"></a><!-- doxytag: member="AgentWatcher::lock" ref="22ad2ee317c4e254833ab07f377ed7fd" args="" -->
boost::mutex </td><td class="memItemRight" valign="bottom"><a class="el" href="classAgentWatcher.html#22ad2ee317c4e254833ab07f377ed7fd">lock</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Lock for protecting the exchange of data between the main thread and the watcher thread. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Abstract base class for watching agent processes. <hr><h2>Member Function Documentation</h2>
<a class="anchor" name="c6325cb940f9c25ef2f44aca00c30755"></a><!-- doxytag: member="AgentWatcher::execProgram" ref="c6325cb940f9c25ef2f44aca00c30755" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void AgentWatcher::execProgram </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline, protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This method is to exec() the agent with the right arguments.
<p>
It is called from within a forked child process, so don't do any dynamic memory allocations in here. It must also not throw any exceptions. It must also preserve the value of errno after exec() is called.
</div>
</div><p>
<a class="anchor" name="e65876d2cc680b739dfee02378233340"></a><!-- doxytag: member="AgentWatcher::forceShutdown" ref="e65876d2cc680b739dfee02378233340" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool AgentWatcher::forceShutdown </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Force the agent process to shut down.
<p>
Returns true if it was shut down, or false if it wasn't started.
</div>
</div><p>
<a class="anchor" name="b99d4346d7b69d86db1b14206e7caadb"></a><!-- doxytag: member="AgentWatcher::getErrorMessage" ref="b99d4346d7b69d86db1b14206e7caadb" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string AgentWatcher::getErrorMessage </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
If the watcher thread has encountered an error, then the error message will be stored here.
<p>
If the error message is empty then it means everything is still OK.
</div>
</div><p>
<a class="anchor" name="77279925d786a774bdf097468c36af96"></a><!-- doxytag: member="AgentWatcher::getExeFilename" ref="77279925d786a774bdf097468c36af96" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual string AgentWatcher::getExeFilename </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [protected, pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the filename of the agent process's executable.
<p>
This method may be called in a forked child process and may therefore not allocate memory.
</div>
</div><p>
<a class="anchor" name="c0749ab103ed5d1adc81b53a7ddc93d8"></a><!-- doxytag: member="AgentWatcher::getFeedbackFd" ref="c0749ab103ed5d1adc81b53a7ddc93d8" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classPassenger_1_1FileDescriptor.html">FileDescriptor</a> AgentWatcher::getFeedbackFd </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the agent process feedback fd, or NULL if the agent process hasn't been started yet.
<p>
Can be used to check whether this agent process has exited without using waitpid().
</div>
</div><p>
<a class="anchor" name="a358a05d41db4ddab9696727849e0d4c"></a><!-- doxytag: member="AgentWatcher::killAndWait" ref="a358a05d41db4ddab9696727849e0d4c" args="(pid_t pid)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void AgentWatcher::killAndWait </td>
<td>(</td>
<td class="paramtype">pid_t </td>
<td class="paramname"> <em>pid</em> </td>
<td> ) </td>
<td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Kill a process with SIGKILL, and attempt to kill its children too.
<p>
Then wait until it has quit.
</div>
</div><p>
<a class="anchor" name="982a388ed5c485ab9615c5bc0abbc71e"></a><!-- doxytag: member="AgentWatcher::name" ref="982a388ed5c485ab9615c5bc0abbc71e" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const char* AgentWatcher::name </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the name of the agent that this class is watching.
<p>
</div>
</div><p>
<a class="anchor" name="4c1c454374c8916788fee166beacfb05"></a><!-- doxytag: member="AgentWatcher::processStartupInfo" ref="4c1c454374c8916788fee166beacfb05" args="(pid_t pid, FileDescriptor &fd, const vector< string > &args)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool AgentWatcher::processStartupInfo </td>
<td>(</td>
<td class="paramtype">pid_t </td>
<td class="paramname"> <em>pid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classPassenger_1_1FileDescriptor.html">FileDescriptor</a> & </td>
<td class="paramname"> <em>fd</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const vector< string > & </td>
<td class="paramname"> <em>args</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [protected, pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This method is to process the startup info that the agent process has sent back.
<p>
May throw arbitrary exceptions.
</div>
</div><p>
<a class="anchor" name="45bc0e41253a0c287e14f708f7dba1e6"></a><!-- doxytag: member="AgentWatcher::sendStartupArguments" ref="45bc0e41253a0c287e14f708f7dba1e6" args="(pid_t pid, FileDescriptor &fd)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void AgentWatcher::sendStartupArguments </td>
<td>(</td>
<td class="paramtype">pid_t </td>
<td class="paramname"> <em>pid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classPassenger_1_1FileDescriptor.html">FileDescriptor</a> & </td>
<td class="paramname"> <em>fd</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [protected, pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This method is to send startup arguments to the agent process through the given file descriptor, which is the agent process's feedback fd.
<p>
May throw arbitrary exceptions.
</div>
</div><p>
<a class="anchor" name="a9f83ed13b06ef80d0417f9c313cf61e"></a><!-- doxytag: member="AgentWatcher::sendStartupInfo" ref="a9f83ed13b06ef80d0417f9c313cf61e" args="(MessageChannel &channel)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void AgentWatcher::sendStartupInfo </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPassenger_1_1MessageChannel.html">MessageChannel</a> & </td>
<td class="paramname"> <em>channel</em> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Send the started agent process's startup information over the given channel, to the starter process.
<p>
May throw arbitrary exceptions.<p>
<dl class="pre" compact><dt><b>Precondition:</b></dt><dd><a class="el" href="classAgentWatcher.html#daf1c0a7104aea662d90f639066b8247" title="Starts the agent process.">start()</a> has been called and succeeded. </dd></dl>
</div>
</div><p>
<a class="anchor" name="daf1c0a7104aea662d90f639066b8247"></a><!-- doxytag: member="AgentWatcher::start" ref="daf1c0a7104aea662d90f639066b8247" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual pid_t AgentWatcher::start </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Starts the agent process.
<p>
May throw arbitrary exceptions.
</div>
</div><p>
<a class="anchor" name="3da11d23ed3b1210a24844856b7f3159"></a><!-- doxytag: member="AgentWatcher::startWatching" ref="3da11d23ed3b1210a24844856b7f3159" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void AgentWatcher::startWatching </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Start watching the agent process.
<p>
<dl class="pre" compact><dt><b>Precondition:</b></dt><dd><a class="el" href="classAgentWatcher.html#daf1c0a7104aea662d90f639066b8247" title="Starts the agent process.">start()</a> has been called and succeeded. <p>
This watcher isn't already watching. </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>RuntimeException</em> </td><td>If a precondition failed. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>thread_interrupted</em> </td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>thread_resource_error</em> </td><td></td></tr>
</table>
</dl>
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="a3eba8fe19117a84764f5f653a03612d"></a><!-- doxytag: member="AgentWatcher::feedbackFd" ref="a3eba8fe19117a84764f5f653a03612d" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classPassenger_1_1FileDescriptor.html">FileDescriptor</a> <a class="el" href="classAgentWatcher.html#a3eba8fe19117a84764f5f653a03612d">AgentWatcher::feedbackFd</a><code> [protected]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
The agent process's feedback fd.
<p>
</div>
</div><p>
<a class="anchor" name="76de201bbc7111c01c31668211494fa8"></a><!-- doxytag: member="AgentWatcher::pid" ref="76de201bbc7111c01c31668211494fa8" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">pid_t <a class="el" href="classAgentWatcher.html#76de201bbc7111c01c31668211494fa8">AgentWatcher::pid</a><code> [protected]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
PID of the process we're watching.
<p>
0 if no process is started at this time.
</div>
</div><p>
<a class="anchor" name="c4fa4122858073a1e3e1d96ce2ade6f2"></a><!-- doxytag: member="AgentWatcher::threadExceptionMessage" ref="c4fa4122858073a1e3e1d96ce2ade6f2" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string <a class="el" href="classAgentWatcher.html#c4fa4122858073a1e3e1d96ce2ade6f2">AgentWatcher::threadExceptionMessage</a><code> [protected]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
If the watcher thread threw an uncaught exception then its information will be stored here so that the main thread can check whether a watcher encountered an error.
<p>
These are empty strings if everything is OK.
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>Watchdog.cpp</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Feb 21 12:22:46 2010 for Passenger by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>
|