git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Externals/libspiderscript - Updated to new master (complex_types)
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
binary.c
diff --git
a/KernelLand/Kernel/binary.c
b/KernelLand/Kernel/binary.c
index
92baa73
..
f618673
100644
(file)
--- a/
KernelLand/Kernel/binary.c
+++ b/
KernelLand/Kernel/binary.c
@@
-194,9
+194,10
@@
int Proc_SysSpawn(const char *Binary, const char **ArgV, const char **EnvP, int
Proc_Execve(Binary, ArgV, EnvP, size);
for(;;);
}
Proc_Execve(Binary, ArgV, EnvP, size);
for(;;);
}
- if( ret
< 0
)
+ if( ret
== -1
)
{
VFS_FreeSavedHandles(nFD, handles);
{
VFS_FreeSavedHandles(nFD, handles);
+ free(cachebuf);
}
return ret;
}
return ret;
@@
-249,7
+250,7
@@
int Proc_Execve(const char *File, const char **ArgV, const char **EnvP, int Data
base = Binary_Load(File, &entry);
if(base == 0)
{
base = Binary_Load(File, &entry);
if(base == 0)
{
- Log_Warning("Binary", "Proc_Execve - Unable to load '%s'
", File
);
+ Log_Warning("Binary", "Proc_Execve - Unable to load '%s'
[errno=%i]", File, errno
);
LEAVE('-');
Threads_Exit(0, -10);
for(;;);
LEAVE('-');
Threads_Exit(0, -10);
for(;;);
UCC
git Repository :: git.ucc.asn.au