[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-workers] Re: nmh-1.1-RC4 post /tmp/,LCK.* problem

From: rader
Subject: [Nmh-workers] Re: nmh-1.1-RC4 post /tmp/,LCK.* problem
Date: Thu, 10 Nov 2005 16:46:19 -0600

i rambled fairly deep into the source just now...

post -alias aliases w/o MHCONTEXT set causes the problem

cd /usr/local/src/nmh-1.1-RC4/uip

./post -library /home/rader/Mail -alias aliases ~/MyDraft
hangs for 30 seconds

./post -library /home/rader/Mail ~/MyDraft
does not

debuging i find...

 uip/post.c main() -alias in calls alias()
   uip/aliasbr.c alias() calls etcpath()
     config/config.c etcpath() calls context_read()
       sbr/context_read.c context_read() does (starting at ~line 120)...
    if ((cp = getenv ("MHCONTEXT")) == (char *)0 || *cp == '\0')
        cp = context;

on my system, somehow cp is Mail before that block of code, and
cp is /dev/null after

indeed, setting MHCONTEXT=/home/rader/Mail/context is a workaround...
it causes the 30 second hang to go away...

 ginseng(rader): unset MHCONTEXT
 ginseng(rader): time /usr/local/lib/post -library /home/rader/Mail -alias 
aliases MyDraft 

 real    0m30.099s
 user    0m0.000s
 sys     0m0.020s

 ginseng(rader): export MHCONTEXT=/home/rader/Mail/context
 ginseng(rader): time /usr/local/lib/post -library /home/rader/Mail -alias 
aliases MyDraft 
 real    0m0.045s
 user    0m0.010s
 sys     0m0.000s

so the question now, i guess is: why does MHCONTEXT get set
to /dev/null when my shell does not have MHCONTEXT set??

i'm outa time... i'll look into that later...

- - -
systems & network manager
high energy physics
university of wisconsin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]