Skip to content

Commit 8633b99

Browse files
committed
Process.ex link/1 and unlink/1
Needed for future Registry.ex Carbon copy from Elixir source. Signed-off-by: Peter M <petermm@gmail.com>
1 parent 1616e62 commit 8633b99

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4848
- Added CodeQL analysis to esp32, stm32, pico, and wasm workflows
4949
- Added Function.ex and Protocol.ex improving Elixir 1.18 support
5050
- Added WiFi support for ESP32P4 via esp-wifi-external for build with ESP-IDF v5.4 and later
51+
- Added Process.link/1 and unlink/1 to Elixir Process.ex
5152

5253
### Changed
5354

libs/exavmlib/lib/Process.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,12 @@ defmodule Process do
231231
@spec list() :: [pid]
232232
defdelegate list(), to: :erlang, as: :processes
233233

234+
@spec link(pid | port) :: true
235+
defdelegate link(pid_or_port), to: :erlang
236+
237+
@spec unlink(pid | port) :: true
238+
defdelegate unlink(pid_or_port), to: :erlang
239+
234240
@doc """
235241
Register a PID or port identifier under `name`.
236242

0 commit comments

Comments
 (0)