Skip to content
Snippets Groups Projects
Commit 47d5fe49 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

Add Porcess.KillBySignal

parent cf8d1cb9
Branches
No related tags found
No related merge requests found
......@@ -13,10 +13,21 @@ using System.Threading;
using Salaros.Configuration;
using System.CommandLine;
using System.Runtime.InteropServices;
using Color = System.Drawing.Color;
using Process = System.Diagnostics.Process;
namespace i3csstatus {
static class ProcesExtended
{
[DllImport("libc", SetLastError = true)]
public static extern int kill(int pid, int sig);
public static int KillBySignal(this Process p, int sig)
{
return kill(p.Id, sig);
}
}
static class ColorToHexExtended
{
static public string ToHex(this Color c)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment