]> arthur.barton.de Git - netatalk.git/commitdiff
Remove in_handler protection, we're blocking signals anyway, its also causing problem...
authorFrank Lahm <franklahm@googlemail.com>
Tue, 1 Mar 2011 11:24:35 +0000 (12:24 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Tue, 1 Mar 2011 11:24:35 +0000 (12:24 +0100)
etc/afpd/afp_dsi.c

index 765c77bc4f7396f74ed4e57ad188e9d053473983..954ff14fd20db6072269ac0384a4d1a9eabb6f8f 100644 (file)
@@ -105,16 +105,6 @@ static void afp_dsi_close(AFPObj *obj)
 static void afp_dsi_die(int sig)
 {
     DSI *dsi = (DSI *)AFPobj->handle;
-    static volatile int in_handler;
-    
-    if (in_handler) {
-       return;
-    }
-    /* it's not atomic but we don't care because it's an exit function
-     * ie if a signal is received here, between the test and the affectation,
-     * it will not return.
-    */
-    in_handler = 1;
 
     if (dsi->flags & DSI_RECONINPROG) {
         /* Primary reconnect succeeded, got SIGTERM from afpd parent */