[sylpheed:31685] Re: sylpheed should remove stale socket on startup
hiro-y at kcn.ne.jp
Tue Sep 11 13:29:28 JST 2007
On Mon, 10 Sep 2007 14:44:26 +0200
Evgeni Golov <sargentd at die-welt.net> wrote:
> I had to kill sylpheed some minutes ago (it hung because of network
> problems) and it did not want to start again.
> After firing up strace, I found sylpheed hanging
> on /tmp/sylpheed-<MyUID>. This was still there after I killed
> As I think a normal user would not try to run strace to find out, why
> the program hangs, sylpheed should always remove an existing socket on
> startup and then create a fresh one instead of trying to reuse the old
> (maybe broken) one.
In the current implementation, Sylpheed first tries to connect with
existing /tmp/sylpheed-<MyUID>. If connect() fails, it removes the
existing one and creates a new one. Normally connect() fails
immediately if the process doesn't exist (is this always right?).
Hiroyuki Yamamoto <hiro-y at kcn.ne.jp>
More information about the Sylpheed