qa: release cpu on newlib/201-signals and newlib/202-signals

This commit is contained in:
Giacomo Tesio 2017-08-12 23:33:38 +02:00
parent 93dfad6b0b
commit e57ff30b63
2 changed files with 10 additions and 2 deletions

View File

@ -28,7 +28,11 @@ main() {
printf("\nI am the new child!\n\n");
close(p[1]);
close(p[0]);
for(;;); /* loop for ever */
for(;;){
/* loop for ever */
printf(".");
usleep(500);
}
}
else /* parent */
{

View File

@ -30,7 +30,11 @@ main() {
printf("Child going to loop...\n");
close(p[1]);
close(p[0]);
for(;;); /* loop for ever */
for(;;){
/* loop for ever */
printf(".");
usleep(500);
}
}
else /* parent */
{