Print this page
10076 make usr/src/test smatch clean
*** 26,36 ****
char foo[4096];
static void *
donothing(void *nothing)
{
! sleep(5);
return (NULL);
}
int
main(void)
--- 26,36 ----
char foo[4096];
static void *
donothing(void *nothing)
{
! (void) sleep(5);
return (NULL);
}
int
main(void)
*** 66,80 ****
ssd.sel = SEL_LDT(i);
(void) sysi86(SI86DSCR, &ssd);
}
for (int i = 0; i < 10; i++)
! pthread_create(&tid, NULL, donothing, NULL);
if (forkall() == 0) {
! sleep(2);
_exit(0);
}
! sleep(6);
return (0);
}
--- 66,80 ----
ssd.sel = SEL_LDT(i);
(void) sysi86(SI86DSCR, &ssd);
}
for (int i = 0; i < 10; i++)
! (void) pthread_create(&tid, NULL, donothing, NULL);
if (forkall() == 0) {
! (void) sleep(2);
_exit(0);
}
! (void) sleep(6);
return (0);
}