* fork.cc (fork): Move top-of-stack calculation later.

* pinfo.cc (_pinfo::set_ctty): Use __ctty to print current console in debugging
output.
This commit is contained in:
Christopher Faylor
2005-11-17 16:36:00 +00:00
parent 0f46c31745
commit 7912bcbf36
3 changed files with 16 additions and 8 deletions

View File

@@ -557,11 +557,8 @@ fork ()
grouped.load_dlls = 0;
int res;
void *esp;
int ischild;
__asm__ volatile ("movl %%esp,%0": "=r" (esp));
myself->set_has_pgid_children ();
if (grouped.ch.parent == NULL)
@@ -574,6 +571,10 @@ fork ()
sig_send (NULL, __SIGHOLD);
ischild = setjmp (grouped.ch.jmp);
void *esp;
__asm__ volatile ("movl %%esp,%0": "=r" (esp));
if (!ischild)
res = grouped.parent (esp);
else