Changes from APPLIANCE_HEAD:
[ira/wip.git] / source3 / lib / messages.c
index bc6f20993810a9fa6723e430e621becbe39ffc55..94c04cfa8e67c5152b3da19afef4e19dc4e2b9a0 100644 (file)
@@ -161,8 +161,8 @@ BOOL message_send_pid(pid_t pid, int msg_type, void *buf, size_t len, BOOL dupli
         */
 
        if (!process_exists(pid)) {
-               tdb_delete(tdb, message_key_pid(pid));
                DEBUG(2,("message_send_pid: pid %d doesn't exist\n", (int)pid));
+               tdb_delete(tdb, message_key_pid(pid));
                return False;
        }