Skip to content

Commit

Permalink
Allow deprecated vfork
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad0x00 committed Dec 20, 2021
1 parent 23a6e4f commit 1bb8b30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Common/Uncompress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ static int uncompress(const char *path)
* sysctl vm.overcommit_memory=1
*/
#if HAVE_WORKING_VFORK
pid_t pid = vfork();
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
pid_t pid = vfork();
#pragma GCC diagnostic pop
#else
pid_t pid = fork();
#endif
Expand Down

0 comments on commit 1bb8b30

Please sign in to comment.