r10656: BIG merge from trunk. Features not copied over
[abartlet/samba.git/.git] / source3 / printing / printing_db.c
index b9b4b3c6b04ab6249f440bc235d995dd1cba1bde..adea10dfa691b5277152a65f1e63ad1f5a5e3677 100644 (file)
@@ -188,7 +188,7 @@ TDB_DATA get_printer_notify_pid_list(TDB_CONTEXT *tdb, const char *printer_name,
 
                /* Entry is dead if process doesn't exist or refcount is zero. */
 
-               while ((i < data.dsize) && ((IVAL(data.dptr, i + 4) == 0) || !process_exists(pid))) {
+               while ((i < data.dsize) && ((IVAL(data.dptr, i + 4) == 0) || !process_exists_by_pid(pid))) {
 
                        /* Refcount == zero is a logic error and should never happen. */
                        if (IVAL(data.dptr, i + 4) == 0) {