All pastes #34220 Raw Edit

Miscellany

public text v1 · immutable
#34220 ·published 2005-12-19 18:05 UTC
rendered paste body
Index: plugins/pause/initng_pause.c
===================================================================
--- plugins/pause/initng_pause.c        (revision 2445)
+++ plugins/pause/initng_pause.c        (working copy)
@@ -69,7 +69,7 @@
         }
         return (TRUE);
     }
-    else if (p->pt == &T_STOP)
+    else if (p->pt == &T_STOP || p->pt == &T_KILL)
     {
         /* delay execution a bit */
         if ((t = active_db_get_int(&D_U_DELAY, s)) > 0)
@@ -84,21 +84,6 @@
         }
         return (TRUE);
     }
-    else if (p->pt == &T_DAEMON)
-    {
-        /* delay execution a bit */
-        if ((t = active_db_get_int(&U_U_DELAY, s)) > 0)
-        {
-            D_("Sleeping for %i milliseconds.\n", t);
-            usleep(t);
-        }
-        else if ((t = active_db_get_int(&U_DELAY, s)) > 0)
-        {
-            D_("Sleeping for %i seconds.\n", t);
-            sleep(t);
-        }
-        return (TRUE);
-    }

     F_("Don't know how to sleep this process type (%s)!\n", s->name);
     return (FALSE);