~britco/nginx/nginx

« back to all changes in this revision

Viewing changes to src/os/unix/ngx_posix_init.c

  • Committer: Package Import Robot
  • Author(s): Cyril Lavier, Cyril Lavier, Kartik Mistry
  • Date: 2012-03-18 09:31:19 UTC
  • mfrom: (4.2.46 sid)
  • Revision ID: package-import@ubuntu.com-20120318093119-vebmqxwdkfk52yjr
Tags: 1.1.17-2
[Cyril Lavier]
* debian/control:
  + Added build dependency to dpkg-dev (>= 1.15.7). (Closes: #664212)
* debian/patches/perl-use-dpkg-buildflags.patch:
  + Added patch to harden flags for perl module (Thanks to Simon Ruderich
    for the patch). (Closes: #664090)

[Kartik Mistry]
* Set urgency due to fix for security and RC bugs with 1.17.1-1 upload.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
    for (n = ngx_pagesize; n >>= 1; ngx_pagesize_shift++) { /* void */ }
49
49
 
 
50
#if (NGX_HAVE_SC_NPROCESSORS_ONLN)
50
51
    if (ngx_ncpu == 0) {
 
52
        ngx_ncpu = sysconf(_SC_NPROCESSORS_ONLN);
 
53
    }
 
54
#endif
 
55
 
 
56
    if (ngx_ncpu < 1) {
51
57
        ngx_ncpu = 1;
52
58
    }
53
59