mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:34:57 +00:00
LibC: Mark a bunch of functions as cancellation points
This commit is contained in:
parent
899fd74f8e
commit
c85f307e62
15 changed files with 78 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
|||
#include <LibELF/AuxiliaryVector.h>
|
||||
#include <alloca.h>
|
||||
#include <assert.h>
|
||||
#include <bits/pthread_cancel.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -810,6 +811,8 @@ void srandom(unsigned seed)
|
|||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/system.html
|
||||
int system(char const* command)
|
||||
{
|
||||
__pthread_maybe_cancel();
|
||||
|
||||
if (!command)
|
||||
return 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue