Mercurial > hg > nginx
view src/os/unix/ngx_setaffinity.h @ 5868:6bbad2e73245
Fixed counting of sent bytes in the send chain functions on EINTR.
Previously, a value of the "send" variable wasn't properly adjusted
in a rare case when syscall was interrupted by a signal. As a result,
these functions could send less data than the limit allows.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Wed, 27 Aug 2014 20:51:01 +0400 |
parents | f31162fefe01 |
children | 7296b38f6416 |
line wrap: on
line source
/* * Copyright (C) Nginx, Inc. */ #ifndef _NGX_SETAFFINITY_H_INCLUDED_ #define _NGX_SETAFFINITY_H_INCLUDED_ #if (NGX_HAVE_SCHED_SETAFFINITY || NGX_HAVE_CPUSET_SETAFFINITY) #define NGX_HAVE_CPU_AFFINITY 1 void ngx_setaffinity(uint64_t cpu_affinity, ngx_log_t *log); #else #define ngx_setaffinity(cpu_affinity, log) #endif #endif /* _NGX_SETAFFINITY_H_INCLUDED_ */