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 913401 Details for
Bug 1114434
python does not wake up when signal arrives when calling signal.pause()
[?]
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.
Script that reproduces the same behaviour in pure C using pthread
test2.c (text/plain), 896 bytes, created by
Bohuslav "Slavek" Kabrda
on 2014-06-30 13:08:09 UTC
(
hide
)
Description:
Script that reproduces the same behaviour in pure C using pthread
Filename:
MIME Type:
Creator:
Bohuslav "Slavek" Kabrda
Created:
2014-06-30 13:08:09 UTC
Size:
896 bytes
patch
obsolete
>#include <stdio.h> >#include <pthread.h> >#include <unistd.h> >#include <signal.h> > >void *subprocess_function(); >void xxx(int signum); > >int main() { > pthread_t thread; > const char *message1 = "Thread 1"; > const char *message2 = "Thread 2"; > int tr; > signal(SIGCHLD, xxx); > > printf("Running thread\n"); > tr = pthread_create(&thread, NULL, subprocess_function, NULL); > if (tr) { > printf("Failed to create pthread\n"); > return 1; > } > > printf("Before pause\n"); > pause(); > printf("After pause\n"); > pthread_join(thread, NULL); > > return 0; >} > >void xxx(int signum) { > if (signum == SIGCHLD) { > printf("Caught sigchild in handler\n"); > } > return; >} > >void *subprocess_function() { > printf("Popening sleep\n"); > sleep(1); > popen("sleep 1", "r"); > printf("Sleeping sleep()\n"); > sleep(3); > printf("Slept sleep()\n"); >}
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 1114434
:
913255
| 913401