From: Martin Mares Date: Wed, 22 Feb 2006 20:29:21 +0000 (+0000) Subject: Merged from rel-3-8: X-Git-Tag: holmes-import~679 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=31bfdbfb25a50d37ad0a3668f7b5de32629c73ba;p=libucw.git Merged from rel-3-8: Don't reset the pid field on process_del(), it's not tested anywhere anyway. Hmm, there was one reference to mp->pid, but the ASSERT didn't make much sense anyway, so I am removing it. --- diff --git a/lib/mainloop.c b/lib/mainloop.c index a318bf2d..affc4aec 100644 --- a/lib/mainloop.c +++ b/lib/mainloop.c @@ -277,14 +277,12 @@ process_del(struct main_process *mp) DBG("MAIN: Deleting process %p (pid=%d)", mp, mp->pid); ASSERT(mp->n.next); clist_remove(&mp->n); - mp->pid = 0; mp->n.next = NULL; } int process_fork(struct main_process *mp) { - ASSERT(!mp->pid); pid_t pid = fork(); if (pid < 0) {