mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibC: Mark a bunch of functions as cancellation points
This commit is contained in:
parent
899fd74f8e
commit
c85f307e62
Notes:
sideshowbarker
2024-07-17 08:39:41 +09:00
Author: https://github.com/timschumi
Commit: c85f307e62
Pull-request: https://github.com/SerenityOS/serenity/pull/14629
Reviewed-by: https://github.com/bgianfo
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