Skip to content
Snippets Groups Projects
Commit 52b7eba7 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Changed to THREAD_{,DIS}ALLOW_UID() around fd_close() to make

create_process() safer.

Rev: src/modules/files/file.c:1.105
parent 805834d5
Branches
Tags
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
\*/ \*/
#include "global.h" #include "global.h"
RCSID("$Id: file.c,v 1.104 1998/05/28 04:25:05 hubbe Exp $"); RCSID("$Id: file.c,v 1.105 1998/06/25 14:56:36 grubba Exp $");
#include "fdlib.h" #include "fdlib.h"
#include "interpret.h" #include "interpret.h"
#include "svalue.h" #include "svalue.h"
...@@ -225,9 +225,9 @@ static void just_close_fd(void) ...@@ -225,9 +225,9 @@ static void just_close_fd(void)
while(1) while(1)
{ {
int i; int i;
THREADS_ALLOW(); THREADS_ALLOW_UID();
i=fd_close(fd); i=fd_close(fd);
THREADS_DISALLOW(); THREADS_DISALLOW_UID();
if(i < 0) if(i < 0)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment