[Top][All Lists]
[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: |
Sun, 28 May 2006 19:54:07 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> In fact, there is already a configuration that would lead to the non
> deletion of the PID from the list:
> - Call to delete_process,
> - Interrupted by a signal before inserting in deleted_processes_list ,
> - Deletion from process_alist,
How can this happen? Are you saying that a signal handler may delete the
process from process_alist? Which signal handler can do that?
I do think there's a leak but it goes like this:
- catch the SIGCHLD signal
- start processing delete-process, which will add the PID to
deleted_pid_list even though the signal has already been caught so the pid
won't get a chance to be removed.
I guess we could check the process's status after adding it to
deleted_pid_list, to catch this case.
Stefan
- Re: delete-process bug, (continued)
- Re: delete-process bug, Michaël Cadilhac, 2006/05/27
- Re: delete-process bug, Stefan Monnier, 2006/05/27
- Re: delete-process bug, Michaël Cadilhac, 2006/05/27
- Re: delete-process bug, Michaël Cadilhac, 2006/05/28
- Re: delete-process bug, Stefan Monnier, 2006/05/28
- Re: delete-process bug, Michaël Cadilhac, 2006/05/28
- Re: delete-process bug, Stefan Monnier, 2006/05/28
- Re: delete-process bug, Michaël Cadilhac, 2006/05/28
- Re: delete-process bug, Kim F. Storm, 2006/05/28
- Re: delete-process bug, Michaël Cadilhac, 2006/05/28
- Re: delete-process bug,
Stefan Monnier <=
- Re: delete-process bug, Michaël Cadilhac, 2006/05/29
- Re: delete-process bug, Kim F. Storm, 2006/05/29
- Re: delete-process bug, David Kastrup, 2006/05/29
- Re: delete-process bug, Eli Zaretskii, 2006/05/29
- Re: delete-process bug, Eli Zaretskii, 2006/05/29
- Re: delete-process bug, Kim F. Storm, 2006/05/29
- Re: delete-process bug, Eli Zaretskii, 2006/05/29
- Re: delete-process bug, Eli Zaretskii, 2006/05/28
- Re: delete-process bug, Kim F. Storm, 2006/05/29
- Re: delete-process bug, Michaël Cadilhac, 2006/05/29