PKUOS - Pintos
Pintos source browser for PKU Operating System course
Functions
wait-twice.c File Reference
#include <syscall.h>
#include "tests/lib.h"
#include "tests/main.h"
Include dependency graph for wait-twice.c:

Go to the source code of this file.

Functions

void test_main (void)
 Wait for a subprocess to finish, twice. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Wait for a subprocess to finish, twice.

tests/main.h

The first call must wait in the usual way and return the exit code. The second wait call must return -1 immediately.

Definition at line 10 of file wait-twice.c.

References exec(), msg(), and wait().

Here is the call graph for this function: