qa: release cpu on newlib/201-signals and newlib/202-signals
This commit is contained in:
parent
93dfad6b0b
commit
e57ff30b63
|
@ -28,7 +28,11 @@ main() {
|
||||||
printf("\nI am the new child!\n\n");
|
printf("\nI am the new child!\n\n");
|
||||||
close(p[1]);
|
close(p[1]);
|
||||||
close(p[0]);
|
close(p[0]);
|
||||||
for(;;); /* loop for ever */
|
for(;;){
|
||||||
|
/* loop for ever */
|
||||||
|
printf(".");
|
||||||
|
usleep(500);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else /* parent */
|
else /* parent */
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,7 +30,11 @@ main() {
|
||||||
printf("Child going to loop...\n");
|
printf("Child going to loop...\n");
|
||||||
close(p[1]);
|
close(p[1]);
|
||||||
close(p[0]);
|
close(p[0]);
|
||||||
for(;;); /* loop for ever */
|
for(;;){
|
||||||
|
/* loop for ever */
|
||||||
|
printf(".");
|
||||||
|
usleep(500);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else /* parent */
|
else /* parent */
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue