ALT Linux Bugzilla
– Attachment 284 Details for
Bug 3061
strace hangs on simple pthread program
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
stracetest.c [2]
stracetest.c (text/x-csrc), 394 bytes, created by
Dmitry V. Levin
on 2003-09-28 16:56:55 MSD
(
hide
)
Description:
stracetest.c [2]
Filename:
MIME Type:
Creator:
Dmitry V. Levin
Created:
2003-09-28 16:56:55 MSD
Size:
394 bytes
patch
obsolete
>#include <stdlib.h> >#include <unistd.h> >#include <pthread.h> > >static pid_t pid; > >int rc = -1; > >void * >testpid(void *ignore) { > int mypid = getpid(); > (void)ignore; > /* All threads should have the same PID? */ > rc = (mypid != pid) ? 1 : 0; > exit (rc); >} > >int >main(void) { > pthread_t child; > pid = getpid(); > pthread_create(&child, NULL, testpid, NULL); > pthread_join(child, NULL); > return rc; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3061
:
282
|
283
|
284
|
285