deadlock avoided crash in 0.34.6

Magnus Ahltorp ahltorp at nada.kth.se
Mon Nov 6 15:47:59 CET 2000


> I'm having this problem with 0.34.5, too. The code in question is this:
> 
> xfs/bsd/xfs_dev-common.c (line 400):
>     if (chan->proc != NULL && proc->p_pid == chan->proc->p_pid) {
>         printf("xfs_message_rpc: deadlock avoided"
>                "pid = %u != %u\n", proc->p_pid, chan->proc->p_pid);
>         return EDEADLK;
>     }
> 
> Your testing for `proc->p_pid==chan->proc->p_pid', but the printf reports
> `proc->p_pid!=chan->proc->p_pid', which is responsible for the "interesting"
> error messages. Now, what is right here, two `==' or two `!='?

It should be two '=='.

/Magnus





More information about the Arla-drinkers mailing list