aboutsummaryrefslogtreecommitdiff
path: root/lib/librt/aio.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2006-03-07 08:28:07 +0000
committerDavid Xu <davidxu@FreeBSD.org>2006-03-07 08:28:07 +0000
commitc5a4f4eff221803d51d7ac37885386b87dcc2426 (patch)
tree32dd7b6f4eeded9a164d22570f864d7b56c28e9b /lib/librt/aio.c
parent8682859c8cbb7830c0fb8fcc7138e9d16e9830e0 (diff)
downloadsrc-c5a4f4eff221803d51d7ac37885386b87dcc2426.tar.gz
src-c5a4f4eff221803d51d7ac37885386b87dcc2426.zip
1. Always call user callback function in newly created thread, it seems
POSIX implies that the user callback function must be executed in clean environment. 2. Use newly introduced pthread stubs in libc.
Notes
Notes: svn path=/head/; revision=156383
Diffstat (limited to 'lib/librt/aio.c')
-rw-r--r--lib/librt/aio.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/librt/aio.c b/lib/librt/aio.c
index 559e89425515..23f14bc0ce35 100644
--- a/lib/librt/aio.c
+++ b/lib/librt/aio.c
@@ -34,10 +34,8 @@
#include "namespace.h"
#include <errno.h>
-#include <pthread.h>
#include <stddef.h>
#include <signal.h>
-#include <unistd.h>
#include "sigev_thread.h"
#include "un-namespace.h"
@@ -92,7 +90,6 @@ aio_io(struct aiocb *iocb, int (*sysfunc)(struct aiocb *iocb))
saved_ev = iocb->aio_sigevent;
sn->sn_id = (sigev_id_t)iocb;
- sn->sn_flags |= SNF_ONESHOT;
__sigev_get_sigevent(sn, &iocb->aio_sigevent, sn->sn_id);
__sigev_list_lock();