~spuul/ruby/ruby2.0

« back to all changes in this revision

Viewing changes to ext/socket/init.c

  • Committer: Package Import Robot
  • Author(s): Antonio Terceiro
  • Date: 2013-11-05 20:33:23 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20131105203323-dqnc8bg26pt5hfp7
Tags: 2.0.0.343-1
* New upstream version (snapshot from 2.0 maintainance branch).
* fix typo in ruby2.0-tcltk description
* Backported upstream patches from Tanaka Akira to fix FTBFS on:
  - GNU/kFreeBSD (Closes: #726095)
  - x32 (Closes: #727010)
* Make date for io-console gemspec predictable (Closes: #724974)
* libruby2.0 now depends on libjs-jquery because of rdoc (Closes: #725056)
* Backport upstream patch by Nobuyoshi Nakada to fix include directory in
  `pkg-config --cflags` (Closes: #725166)
* Document missing licenses in debian/copyright (Closes: #723161)
* debian/libruby2.0.symbols: add new symbol rb_exec_recursive_paired_outer
  (not in the public API though)

Show diffs side-by-side

added added

removed removed

Lines of Context:
488
488
    if (address_len) len0 = *address_len;
489
489
#ifdef HAVE_ACCEPT4
490
490
    if (try_accept4) {
491
 
        ret = accept4(socket, address, address_len, SOCK_CLOEXEC);
 
491
        int flags = 0;
 
492
#ifdef SOCK_CLOEXEC
 
493
        flags |= SOCK_CLOEXEC;
 
494
#endif
 
495
        ret = accept4(socket, address, address_len, flags);
492
496
        /* accept4 is available since Linux 2.6.28, glibc 2.10. */
493
497
        if (ret != -1) {
494
498
            if (ret <= 2)