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 610248 Details for
Bug 809360
sd_notifyf doesn't work as expected for httpd
[?]
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.
reproducer for second problem
test.c (text/plain), 1.56 KB, created by
Jan Kaluža
on 2012-09-06 10:14:21 UTC
(
hide
)
Description:
reproducer for second problem
Filename:
MIME Type:
Creator:
Jan Kaluža
Created:
2012-09-06 10:14:21 UTC
Size:
1.56 KB
patch
obsolete
>/*** >Copyright (c) 2012 Jan Kaluza > >Permission is hereby granted, free of charge, to any person >obtaining a copy of this software and associated documentation >files (the "Software"), to deal in the Software without >restriction, including without limitation the rights to use, >copy, modify, merge, publish, distribute, sublicense, and/or sell >copies of the Software, and to permit persons to whom the >Software is furnished to do so, subject to the following >conditions: > >The above copyright notice and this permission notice shall be >included in all copies or substantial portions of the Software. > >THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, >EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES >OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND >NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT >HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, >WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING >FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR >OTHER DEALINGS IN THE SOFTWARE. >***/ > >#include <stdint.h> >#include <stdio.h> >#include <sys/types.h> >#include <sys/wait.h> >#include <errno.h> >#include <unistd.h> > >int main(int argc, char **argv) { > int i = 0; > sd_notifyf(0, "READY=1\n" > "STATUS=Processing requests...\n" > "MAINPID=%lu", > (unsigned long) getpid()); > > pid_t pid = fork(); > if (pid == 0) { > while(1) { > int e = sd_notifyf(0, "STATUS=Processing requests %d...\n", i++); > if (e < 1) { > break; > } > sleep(1); > } > } > else if (pid > 0) { > int status; > waitpid(pid, &status, 0); > } > > return 0; >}
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 809360
:
574773
|
610232
| 610248