⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__apr__thread__proc.html

📁 apr函数库使用手册
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<hr><h2>Enumeration Type Documentation</h2>
<a class="anchor" name="ga68" doxytag="apr_thread_proc.h::apr_cmdtype_e" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> enum <a class="el" href="group__apr__thread__proc.html#ga68">apr_cmdtype_e</a>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em><a class="anchor" name="gga68a29" doxytag="APR_SHELLCMD" ></a>APR_SHELLCMD</em>&nbsp;</td><td>
use the shell to invoke the program </td></tr>
<tr><td valign=top><em><a class="anchor" name="gga68a30" doxytag="APR_PROGRAM" ></a>APR_PROGRAM</em>&nbsp;</td><td>
invoke the program directly, no copied env </td></tr>
<tr><td valign=top><em><a class="anchor" name="gga68a31" doxytag="APR_PROGRAM_ENV" ></a>APR_PROGRAM_ENV</em>&nbsp;</td><td>
invoke the program, replicating our environment </td></tr>
<tr><td valign=top><em><a class="anchor" name="gga68a32" doxytag="APR_PROGRAM_PATH" ></a>APR_PROGRAM_PATH</em>&nbsp;</td><td>
find program on PATH, use our environment </td></tr>
<tr><td valign=top><em><a class="anchor" name="gga68a33" doxytag="APR_SHELLCMD_ENV" ></a>APR_SHELLCMD_ENV</em>&nbsp;</td><td>
use the shell to invoke the program, replicating our environment </td></tr>
</table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="ga70" doxytag="apr_thread_proc.h::apr_exit_why_e" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> enum <a class="el" href="group__apr__thread__proc.html#ga70">apr_exit_why_e</a>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em><a class="anchor" name="gga70a36" doxytag="APR_PROC_EXIT" ></a>APR_PROC_EXIT</em>&nbsp;</td><td>
process exited normally </td></tr>
<tr><td valign=top><em><a class="anchor" name="gga70a37" doxytag="APR_PROC_SIGNAL" ></a>APR_PROC_SIGNAL</em>&nbsp;</td><td>
process exited due to a signal </td></tr>
<tr><td valign=top><em><a class="anchor" name="gga70a38" doxytag="APR_PROC_SIGNAL_CORE" ></a>APR_PROC_SIGNAL_CORE</em>&nbsp;</td><td>
process exited and dumped a core file </td></tr>
</table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="ga71" doxytag="apr_thread_proc.h::apr_kill_conditions_e" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> enum <a class="el" href="group__apr__thread__proc.html#ga71">apr_kill_conditions_e</a>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em><a class="anchor" name="gga71a39" doxytag="APR_KILL_NEVER" ></a>APR_KILL_NEVER</em>&nbsp;</td><td>
process is never sent any signals </td></tr>
<tr><td valign=top><em><a class="anchor" name="gga71a40" doxytag="APR_KILL_ALWAYS" ></a>APR_KILL_ALWAYS</em>&nbsp;</td><td>
process is sent SIGKILL on apr_pool_t cleanup </td></tr>
<tr><td valign=top><em><a class="anchor" name="gga71a41" doxytag="APR_KILL_AFTER_TIMEOUT" ></a>APR_KILL_AFTER_TIMEOUT</em>&nbsp;</td><td>
SIGTERM, wait 3 seconds, SIGKILL </td></tr>
<tr><td valign=top><em><a class="anchor" name="gga71a42" doxytag="APR_JUST_WAIT" ></a>APR_JUST_WAIT</em>&nbsp;</td><td>
wait forever for the process to complete </td></tr>
<tr><td valign=top><em><a class="anchor" name="gga71a43" doxytag="APR_KILL_ONLY_ONCE" ></a>APR_KILL_ONLY_ONCE</em>&nbsp;</td><td>
send SIGTERM and then wait </td></tr>
</table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="ga69" doxytag="apr_thread_proc.h::apr_wait_how_e" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> enum <a class="el" href="group__apr__thread__proc.html#ga69">apr_wait_how_e</a>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em><a class="anchor" name="gga69a34" doxytag="APR_WAIT" ></a>APR_WAIT</em>&nbsp;</td><td>
wait for the specified process to finish </td></tr>
<tr><td valign=top><em><a class="anchor" name="gga69a35" doxytag="APR_NOWAIT" ></a>APR_NOWAIT</em>&nbsp;</td><td>
do not wait -- just see if it has finished </td></tr>
</table>
</dl>
    </td>
  </tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="ga52" doxytag="apr_thread_proc.h::apr_pool_note_subprocess" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void apr_pool_note_subprocess           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group__apr__pools.html#ga0">apr_pool_t</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>a</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="structapr__proc__t.html">apr_proc_t</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>proc</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="group__apr__thread__proc.html#ga71">apr_kill_conditions_e</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>how</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Register a process to be killed when a pool dies. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>a</em>&nbsp;</td><td>The pool to use to define the processes lifetime </td></tr>
    <tr><td></td><td valign=top><em>proc</em>&nbsp;</td><td>The process to register </td></tr>
    <tr><td></td><td valign=top><em>how</em>&nbsp;</td><td>How to kill the process, one of: <pre>
         APR_KILL_NEVER         -- process is never sent any signals
         APR_KILL_ALWAYS        -- process is sent SIGKILL on apr_pool_t cleanup
         APR_KILL_AFTER_TIMEOUT -- SIGTERM, wait 3 seconds, SIGKILL
         APR_JUST_WAIT          -- wait forever for the process to complete
         APR_KILL_ONLY_ONCE     -- send SIGTERM and then wait
 </pre> </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="ga42" doxytag="apr_thread_proc.h::apr_proc_create" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> apr_proc_create           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structapr__proc__t.html">apr_proc_t</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>new_proc</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap> <em>progname</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const char *const *&nbsp;</td>
          <td class="mdname" nowrap> <em>args</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const char *const *&nbsp;</td>
          <td class="mdname" nowrap> <em>env</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="group__apr__thread__proc.html#ga4">apr_procattr_t</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>attr</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="group__apr__pools.html#ga0">apr_pool_t</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>pool</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -