Skip to content
Fourohtwo

detect.halowerk.com/v1/F-A-NIGHT-OS-SUBREAPER/linux-child-subreaper-orphan-adopt

Returns which descendant becomes the new parent of an orphan after an intermediate process exits, including nested subreapers and the noninheritance of the flag across fork, for an offline supervisor fixture author.

BaseAnswering
POSThttps://detect.halowerk.com/v1/F-A-NIGHT-OS-SUBREAPER/linux-child-subreaper-orphan-adoption

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://detect.halowerk.com/v1/F-A-NIGHT-OS-SUBREAPER/linux-child-subreaper-orphan-adoption", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"artifact":{"subreaper_adoption":{"claim":2,"events":[{"op":"exit","process":3},{"op":"exit","process":4}],"init_process":1,"processes":[{"id":1,"parent":0,"subreaper":false},{"id":2,"parent":1,"subreaper":true},{"id":3,"parent":2,"subreaper":false},{"id":4,"parent":3,"subreaper":false},{"id":5,"parent":4,"subreaper":false}]}}}),
});
console.log(await res.json());

Example input

{
  "artifact": {
    "subreaper_adoption": {
      "claim": 2,
      "events": [
        {
          "op": "exit",
          "process": 3
        },
        {
          "op": "exit",
          "process": 4
        }
      ],
      "init_process": 1,
      "processes": [
        {
          "id": 1,
          "parent": 0,
          "subreaper": false
        },
        {
          "id": 2,
          "parent": 1,
          "subreaper": true
        },
        {
          "id": 3,
          "parent": 2,
          "subreaper": false
        },
        {
          "id": 4,
          "parent": 3,
          "subreaper": false
        },
        {
          "id": 5,
          "parent": 4,
          "subreaper": false
        }
      ]
    }
  }
}