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
Kernel/debug - Panic to VT for the first nested panic
[tpg/acess2.git]
/
AcessNative
/
ld-acess_src
/
exports.c
diff --git
a/AcessNative/ld-acess_src/exports.c
b/AcessNative/ld-acess_src/exports.c
index
b75b8fd
..
07662a5
100644
(file)
--- a/
AcessNative/ld-acess_src/exports.c
+++ b/
AcessNative/ld-acess_src/exports.c
@@
-256,15
+256,18
@@
int acess_execve(char *path, char **argv, const char **envp)
int acess__SysSpawn(const char *binary, const char **argv, const char **envp, int nfd, int fds[], struct s_sys_spawninfo *info)
{
int acess__SysSpawn(const char *binary, const char **argv, const char **envp, int nfd, int fds[], struct s_sys_spawninfo *info)
{
+ int argc = 0;
+ while( argv[argc++] );
+
+ Debug("_SysSpawn('%s', %p (%i), %p, %i, %p, %p)",
+ binary, argv, argc, envp, nfd, fds, info);
+
int kernel_tid;
int newID;
int kernel_tid;
int newID;
- newID = _Syscall(SYS_AN_SPAWN, "<d
>d
>d", sizeof(int), &kernel_tid,
+ newID = _Syscall(SYS_AN_SPAWN, "<d
>d
>d", sizeof(int), &kernel_tid,
nfd*sizeof(int), fds,
info ? sizeof(*info) : 0, info);
nfd*sizeof(int), fds,
info ? sizeof(*info) : 0, info);
- int argc = 0;
- while( argv[argc++] );
-
const char *new_argv[5+argc+1];
int new_argc = 0, i;
char client_id_str[11];
const char *new_argv[5+argc+1];
int new_argc = 0, i;
char client_id_str[11];
UCC
git Repository :: git.ucc.asn.au