Latest update - 7449
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2002-2018 Igor Sysoev
|
* Copyright (C) 2002-2019 Igor Sysoev
|
||||||
* Copyright (C) 2011-2018 Nginx, Inc.
|
* Copyright (C) 2011-2019 Nginx, Inc.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|||||||
@@ -250,9 +250,7 @@ ngx_eventport_init(ngx_cycle_t *cycle, ngx_msec_t timer)
|
|||||||
|
|
||||||
ngx_memzero(&sev, sizeof(struct sigevent));
|
ngx_memzero(&sev, sizeof(struct sigevent));
|
||||||
sev.sigev_notify = SIGEV_PORT;
|
sev.sigev_notify = SIGEV_PORT;
|
||||||
#if !(NGX_TEST_BUILD_EVENTPORT)
|
|
||||||
sev.sigev_value.sival_ptr = &pn;
|
sev.sigev_value.sival_ptr = &pn;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (timer_create(CLOCK_REALTIME, &sev, &event_timer) == -1) {
|
if (timer_create(CLOCK_REALTIME, &sev, &event_timer) == -1) {
|
||||||
ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno,
|
ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno,
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ ngx_file_aio_read(ngx_file_t *file, u_char *buf, size_t size, off_t offset,
|
|||||||
#if (NGX_HAVE_KQUEUE)
|
#if (NGX_HAVE_KQUEUE)
|
||||||
aio->aiocb.aio_sigevent.sigev_notify_kqueue = ngx_kqueue;
|
aio->aiocb.aio_sigevent.sigev_notify_kqueue = ngx_kqueue;
|
||||||
aio->aiocb.aio_sigevent.sigev_notify = SIGEV_KEVENT;
|
aio->aiocb.aio_sigevent.sigev_notify = SIGEV_KEVENT;
|
||||||
aio->aiocb.aio_sigevent.sigev_value.sigval_ptr = ev;
|
aio->aiocb.aio_sigevent.sigev_value.sival_ptr = ev;
|
||||||
#endif
|
#endif
|
||||||
ev->handler = ngx_file_aio_event_handler;
|
ev->handler = ngx_file_aio_event_handler;
|
||||||
|
|
||||||
|
|||||||
@@ -89,8 +89,14 @@
|
|||||||
|
|
||||||
|
|
||||||
#if (NGX_HAVE_FILE_AIO)
|
#if (NGX_HAVE_FILE_AIO)
|
||||||
|
|
||||||
#include <aio.h>
|
#include <aio.h>
|
||||||
typedef struct aiocb ngx_aiocb_t;
|
typedef struct aiocb ngx_aiocb_t;
|
||||||
|
|
||||||
|
#if (__FreeBSD_version < 700005 && !defined __DragonFly__)
|
||||||
|
#define sival_ptr sigval_ptr
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user