Login 
 
 Pref   Your subscriptions   Home   Help 
pigeon-dev@ml.pigeonair.net
PigeonAir - Development Mailing List
   
 
List info
 
 
 
Subscribe
 
 
Unsubscribe
 
 
Archive
 
 
Post
 



Advanced search
2006 01 02 03 04 05 06 07 08 09 10 11 12

       Chronological                 Thread       

uhm .. curious.. patch for postfix :) Carlo Contavalli
  • From: Carlo Contavalli <ccontavalli@xxxxxxxxxxx>
  • To: pigeon-dev@xxxxxxxxxxxxxxxx
  • Subject: uhm .. curious.. patch for postfix :)
  • Date: Fri, 31 Mar 2006 10:13:55 +0200


  • well,
    seems like postfix myflock does not handle EINTR correctly...
    which probably isn't really used by postfix, but, .. hey, better
    to fix it than to leave it alone...

    Cheers,
    Carlo

    --
    GPG Fingerprint: 2383 7B14 4D08 53A4 2C1A CA29 9E98 5431 1A68 6975
    -------------
    But, officer, he's not drunk, I just saw his fingers twitch!
    --- /home/projects/mail/postfix/postfix-2.2.8/src/util/myflock.c
    2000-11-30 20:02:05.000000000 +0000
    +++ ./util/myflock.c 2006-03-31 08:07:09.000000000 +0000
    @@ -107,7 +107,9 @@
    -1, LOCK_SH | LOCK_NB, LOCK_EX | LOCK_NB, -1
    };

    - status = flock(fd, lock_ops[operation]);
    + while((status = flock(fd, lock_ops[operation])) < 0 && errno ==
    EINTR)
    + ;
    +
    break;
    }
    #endif

      Powered by Sympa