1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:48:13 +00:00

Kernel: Only allow sending signals to process you own.

This commit is contained in:
Andreas Kling 2019-02-28 11:45:45 +01:00
parent 05f9257621
commit c09ab7cc40
2 changed files with 15 additions and 6 deletions

View file

@ -52,7 +52,9 @@ int main(int argc, char** argv)
return 3;
}
kill((pid_t)pid, signum);
int rc = kill((pid_t)pid, signum);
if (rc < 0)
perror("kill");
return 0;
}