saleyn / erlexec

Execute and control OS processes from Erlang/OTP
https://hexdocs.pm/erlexec/readme.html
Other
541 stars 141 forks source link

manage links with fake OS pid without an error #51

Closed Timrael closed 9 years ago

Timrael commented 9 years ago

Hello Sergei,

I have an issue with passing fake OS pid to manage function:

FakeOsPid = 12345.
exec:manage(FakeOsPid, []).

I expect 'error', but always got 'ok'.

saleyn commented 9 years ago

This issue has been fixed in the latest commit.

2> exec:manage(12345, []).
{error, not_found}
Timrael commented 9 years ago

Thanks! You're doing a good job.

Timrael commented 9 years ago

@saleyn sorry man, but now exec:manage returns {error, not_found} for all pids, no matter it's real or not.

saleyn commented 9 years ago

Apparently the Linux API call I used wasn't correct. The issue is fixed now.