diff options
-rw-r--r-- | c_src/sd_notify.c | 2 | ||||
-rw-r--r-- | src/sd_notify.erl | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/c_src/sd_notify.c b/c_src/sd_notify.c index 6eed405..7c5bd25 100644 --- a/c_src/sd_notify.c +++ b/c_src/sd_notify.c @@ -69,4 +69,4 @@ static ErlNifFunc nif_funcs[] = }; -ERL_NIF_INIT(sd_notify, nif_funcs, NULL, NULL, NULL, NULL); +ERL_NIF_INIT(sd_notify, nif_funcs, NULL, NULL, NULL, NULL);
\ No newline at end of file diff --git a/src/sd_notify.erl b/src/sd_notify.erl index 6b0f91e..0a69442 100644 --- a/src/sd_notify.erl +++ b/src/sd_notify.erl @@ -27,7 +27,7 @@ -module(sd_notify). --export([sd_notify/2, sd_notifyf/3, sd_pid_notify/3]). +-export([sd_notify/2, sd_notifyf/3, sd_pid_notify/3, sd_pid_notifyf/4]). -on_load(init/0). @@ -61,6 +61,10 @@ sd_pid_notify(_, _, _) -> sd_notifyf(UnsetEnv, Format, Data) -> sd_notify(UnsetEnv, lists:flatten(io_lib:format(Format, Data))). + +sd_pid_notifyf(UnsetEnvPid, UnsetEnv, Format, Data) -> + sd_pid_notify(UnsetEnvPid, UnsetEnv, lists:flatten(io_lib:format(Format, Data))). + %% =================================================================== %% EUnit tests %% =================================================================== |