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:
parent
05f9257621
commit
c09ab7cc40
2 changed files with 15 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue