You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That killprocasync is really in MoarVM as far as I can tell, but even at the NQP level I lose all my bearings.
As such, it seems this doesn't work at all like the Perl 5 version. It might be too late to change the name of the method so it doesn't carry the baggage of the expectations of the real thing called kill, but it doesn't work as it does in Perl 5. I'd probably document this as "not in Perl 6, so shell out".
I wasn't so much interested in the termination aspects of kill as the "is the process still running" abilities, especially for processes not started by the one I'm currently in.
The text was updated successfully, but these errors were encountered:
I wasn't so much interested in the termination aspects of kill as the "is the process still running" abilities, especially for processes not started by the one I'm currently in.
This is a rather POSIX specific expectation. perl5 puts effort into emulating it on Windows; it's not necessarily a sensible expectation or a sensible interface.
The p5-p6 perlfunc for kill says
As far as I can tell, this only lets you send a signal to a process you started and there's no (documented) way to provide a PID.
That
killprocasync
is really in MoarVM as far as I can tell, but even at the NQP level I lose all my bearings.As such, it seems this doesn't work at all like the Perl 5 version. It might be too late to change the name of the method so it doesn't carry the baggage of the expectations of the real thing called
kill
, but it doesn't work as it does in Perl 5. I'd probably document this as "not in Perl 6, so shell out".I wasn't so much interested in the termination aspects of kill as the "is the process still running" abilities, especially for processes not started by the one I'm currently in.
The text was updated successfully, but these errors were encountered: