7e6c37e67e
One test case for returning a exit status Passes usertests, but haven't used it to simplify tests
15 lines
234 B
C
15 lines
234 B
C
// Create a zombie process that
|
|
// must be reparented at exit.
|
|
|
|
#include "kernel/types.h"
|
|
#include "kernel/stat.h"
|
|
#include "user/user.h"
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
if(fork() > 0)
|
|
sleep(5); // Let child exit before parent.
|
|
exit(0);
|
|
}
|