emacs-devel
[Top][All Lists]
Advanced

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

Re: delete-process bug


From: Stefan Monnier
Subject: Re: delete-process bug
Date: Thu, 25 May 2006 15:40:05 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> I think in order to avoid such race-conditions without waiting for the
>> process's death, we'll need to remember those processes that were deleted
>> but aren't dead yet.  Of course, it goes against the docstring of
>> `delete-process' which says "forget about it immediately".  But we don't
>> need to keep the whole process around; just the PID should be enough, kept
>> in a list of "deleted but not dead" PIDs.  See sample patch below.

> Actually,  I did  try such  a solution,  but I  wasn't sure  where the
> elements of that list should be  deleted (removed? ;-)) ; I'm not very
> comfortable with making such things in a sighandler.

Check my patch: in the sighandler I only zero-out the list-entry; the
cons-cell itself will only be removed next time you call delete-process.


        Stefan




reply via email to

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