Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 155244 Details for
Bug 240962
Hangs and/or multithreaded process left Stopped (T) on CTRL-C of strace
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Testcase.
mt3-tkill.c (text/plain), 1016 bytes, created by
Jan Kratochvil
on 2007-05-23 14:29:15 UTC
(
hide
)
Description:
Testcase.
Filename:
MIME Type:
Creator:
Jan Kratochvil
Created:
2007-05-23 14:29:15 UTC
Size:
1016 bytes
patch
obsolete
>#include <stdio.h> >#include <sys/types.h> >#include <pthread.h> >#include <signal.h> >#include <assert.h> >#include <stdlib.h> >#include <unistd.h> >#include <errno.h> > >void *start (void *arg) >{ > for (;;) { > int i; > struct sigaction oact; > > i = sigaction (SIGCHLD, (struct sigaction *) NULL, &oact); >#ifndef ERESTARTNOINTR >#define ERESTARTNOINTR 513 >#endif > if (i == -1 && errno == ERESTARTNOINTR) > { >#if 0 > fprintf (stderr, "sigaction(): ERESTARTNOINTR\n"); > abort (); >#endif > } > else > { > assert (i == 0); > assert (oact.sa_handler == SIG_DFL); > } > } >} > >int main(int argc, char *argv[]) >{ >pid_t p_pid; >pthread_t thread_id[64]; >int i; >int status; >void *result; > > p_pid=getpid(); > > printf("%d\n",p_pid); > > for(i=0;i<sizeof(thread_id)/sizeof(*thread_id);i++) > status=pthread_create(&thread_id[i],NULL,start,(void *)NULL); > > for(i=0;i<sizeof(thread_id)/sizeof(*thread_id);i++) > pthread_join(thread_id[i],&result); > > printf("[%d]end\n",p_pid); > > return EXIT_SUCCESS; >}
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 240962
: 155244 |
155246
|
155329
|
155354