]> mj.ucw.cz Git - libucw.git/commitdiff
Merged from rel-3-8:
authorMartin Mares <mj@ucw.cz>
Wed, 22 Feb 2006 20:29:21 +0000 (20:29 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 22 Feb 2006 20:29:21 +0000 (20:29 +0000)
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.

lib/mainloop.c

index a318bf2d7bc9612932e3622f2b89000a2dec5ea6..affc4aec8efa0845ca67b20b01816464a2125cec 100644 (file)
@@ -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)
     {