dictu-lang / Dictu

Dictu is a high-level dynamically typed, multi-paradigm, interpreted programming language.
https://dictu-lang.com
MIT License
268 stars 53 forks source link

[FEATURE] Add kill function to the Process Module #694

Closed briandowns closed 9 months ago

briandowns commented 10 months ago

Is there an existing issue for this?

Is your feature request related to a problem?

It would be helpful to have a kill function in the Process module to be able to kill running processes with a given signal.

Describe the solution you'd like

import Process;

const res = Process.kill(8675309, Process.SIG_KILL);
// Result<Nil>

The signal argument would be optional and if one is given, it's override the default of (insert choice here :) )

Describe alternatives you've considered

No response

Additional context

No response