blob: f48c0b156344f864aeb66025ea6fb7edf3e3e45e (
plain) (
tree)
|
|
#include <time.h>
#include <unistd.h>
int
main(void)
{
struct timespec ts = {0, 100000000L};
switch (fork()) {
case -1:
return 2;
case 0:
return 0;
default:
nanosleep(&ts, NULL);
return 1;
}
}
|