FreeBSD Bugzilla – Attachment 183968 Details for
Bug 220398
lio_listio(2) never sends signal if nent==0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Reproduction program
lio_listio_empty_test.c (text/x-csrc), 459 bytes, created by
Alan Somers
on 2017-06-30 21:53:05 UTC
(
hide
)
Description:
Reproduction program
Filename:
MIME Type:
Creator:
Alan Somers
Created:
2017-06-30 21:53:05 UTC
Size:
459 bytes
patch
obsolete
>#include <assert.h> >#include <aio.h> >#include <signal.h> >#include <stdio.h> >#include <unistd.h> > >int main(int argc, char** argv) { > struct aiocb *list = NULL; > struct sigevent sev; > > assert(0 == lio_listio(LIO_WAIT, &list, 0, NULL)); > printf("with LIO_WAIT, returned immediately\n"); > > sev.sigev_notify = SIGEV_SIGNAL; > sev.sigev_signo = SIGTERM; > assert(0 == lio_listio(LIO_NOWAIT, &list, 0, &sev)); > sleep(1); > printf("Didn't get SIGTERM\n"); > 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 220398
: 183968