全部搜尋項
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: libobject-forkaware-perl  ]

套件:libobject-forkaware-perl(0.005-1.1)

libobject-forkaware-perl 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 libobject-forkaware-perl

維護小組:

外部的資源:

相似套件:

module to make an object aware of process forks and threads

Object::ForkAware invisibly wraps your object and makes it fork-aware, automatically checking $$ on every access and recreating the object if the process id changes. (The object is also thread-aware; if the thread id changes, the object is recreated in the same manner.)

The object can be safely used with type checks and various type constraint mechanisms, as isa() and can() respond as if they were being called against the contained object itself.

Rationale: If you've ever had an object representing a network connection to some server, or something else containing a socket, a filehandle, etc, and used it in a program that forks, and then forgot to close and reopen your socket/handle etc. in the new process, you'll know what chaos can ensue. Depending on the type of connection, you can have multiple processes trying to write to the same resource at once, or simultaneous reads getting each other's data, dogs and cats living together... It's horrible, and it's an easy problem to run into.

其他與 libobject-forkaware-perl 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 libobject-forkaware-perl

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 10。4 kB31。0 kB [檔案列表]