PCNTL 函數(shù)

參見

參考一下 POSIX functions 對有助于理解使用。

目錄

  • pcntl_alarm — 為進程設(shè)置一個alarm鬧鐘信號
  • pcntl_async_signals — Enable/disable asynchronous signal handling or return the old setting
  • pcntl_errno — 別名 pcntl_get_last_error
  • pcntl_exec — 在當(dāng)前進程空間執(zhí)行指定程序
  • pcntl_fork — 在當(dāng)前進程當(dāng)前位置產(chǎn)生分支(子進程)。譯注:fork是創(chuàng)建了一個子進程,父進程和子進程 都從fork的位置開始向下繼續(xù)執(zhí)行,不同的是父進程執(zhí)行過程中,得到的fork返回值為子進程 號,而子進程得到的是0。
  • pcntl_get_last_error — Retrieve the error number set by the last pcntl function which failed
  • pcntl_getpriority — 獲取任意進程的優(yōu)先級
  • pcntl_rfork — Manipulates process resources
  • pcntl_setpriority — 修改任意進程的優(yōu)先級
  • pcntl_signal_dispatch — 調(diào)用等待信號的處理器
  • pcntl_signal_get_handler — Get the current handler for specified signal
  • pcntl_signal — 安裝一個信號處理器
  • pcntl_sigprocmask — 設(shè)置或檢索阻塞信號
  • pcntl_sigtimedwait — 帶超時機制的信號等待
  • pcntl_sigwaitinfo — 等待信號
  • pcntl_strerror — Retrieve the system error message associated with the given errno
  • pcntl_unshare — Dissociates parts of the process execution context
  • pcntl_wait — 等待或返回 fork 的子進程狀態(tài)
  • pcntl_waitpid — 等待或返回fork的子進程狀態(tài)
  • pcntl_wexitstatus — 返回一個中斷的子進程的返回代碼
  • pcntl_wifexited — 檢查狀態(tài)代碼是否代表一個正常的退出。
  • pcntl_wifsignaled — 檢查子進程狀態(tài)碼是否代表由于某個信號而中斷
  • pcntl_wifstopped — 檢查子進程當(dāng)前是否已經(jīng)停止
  • pcntl_wstopsig — 返回導(dǎo)致子進程停止的信號
  • pcntl_wtermsig — 返回導(dǎo)致子進程中斷的信號