[Lost] [Patch] Bugfix für _exit und waitpid

Kevin Wolf ·

Antoine Kaufmann schrieb:
> Index: src/modules/lib/stdlibc/exit.c
> ===================================================================
> --- src/modules/lib/stdlibc/exit.c	(Revision 703)
> +++ src/modules/lib/stdlibc/exit.c	(Arbeitskopie)
> @@ -108,7 +108,7 @@
>      char* msg = "CHL_EXIT    ";
>      int* status = (int*) (msg + 8);
 >      *status = result;

Dein Code ist extrem verwirrend... Schreib das besser so ähnlich wie das:

uint8_t msg[12];
char* function_name = (char*) &msg[0];
int* status = (int*) &msg[8];

strcpy(function_name, "CHL_EXIT");
*status = result

Ansonsten ist es okay.