unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#41042: Compilation (Comint) is consistently killed when run with default directory /sudo::root
@ 2020-05-03  7:48 akater
  2020-05-03 12:26 ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: akater @ 2020-05-03  7:48 UTC (permalink / raw)
  To: 41042

[-- Attachment #1: Type: text/plain, Size: 574 bytes --]

I'm using Emacs 28.0.50 (build 1, x86_64-pc-linux-uclibc) of 2020-05-03.

Compilation processes started with #'compile are killed after some time
when default-directory is let-bound to /sudo::/

Example:

emacs -Q

(require 'tramp)
(require 'compile)
(let ((default-directory "/sudo::/")) (compile "sleep 300"))

This started to happen between January 1 and April 30 (most likely
between March 1 and April 15 but I can't be completely sure).  I'm
calling such code regularly; it is used by ebuild-mode package in the
main Gentoo repository.

(compile "sudo ..") works fine.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#41042: Compilation (Comint) is consistently killed when run with default directory /sudo::root
  2020-05-03  7:48 bug#41042: Compilation (Comint) is consistently killed when run with default directory /sudo::root akater
@ 2020-05-03 12:26 ` Michael Albinus
  2020-05-03 20:25   ` akater
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2020-05-03 12:26 UTC (permalink / raw)
  To: akater; +Cc: 41042

akater <nuclearspace@gmail.com> writes:

Hi,

> I'm using Emacs 28.0.50 (build 1, x86_64-pc-linux-uclibc) of 2020-05-03.
>
> Compilation processes started with #'compile are killed after some time
> when default-directory is let-bound to /sudo::/
>
> Example:
>
> emacs -Q
>
> (require 'tramp)
> (require 'compile)
> (let ((default-directory "/sudo::/")) (compile "sleep 300"))
>
> This started to happen between January 1 and April 30 (most likely
> between March 1 and April 15 but I can't be completely sure).  I'm
> calling such code regularly; it is used by ebuild-mode package in the
> main Gentoo repository.

Well, this is hit by a recent change, that tramp-cleanup-connection
kills now *all* connection related processes. This should not happen for
remote asynchronous processes belonging to a connection with a session
timeout like "sudo". I've fixed this in master, could you please check?

Best regards, Michael.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#41042: Compilation (Comint) is consistently killed when run with default directory /sudo::root
  2020-05-03 12:26 ` Michael Albinus
@ 2020-05-03 20:25   ` akater
  2020-05-04  7:02     ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: akater @ 2020-05-03 20:25 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 41042

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]


Thank you, everything is fine now.

It looks like not many users of live Emacs builds also use compile over
tramp feature, as this haven't been reported earlier.  That's
unexpected.  (I build and install ≈everything this way.)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#41042: Compilation (Comint) is consistently killed when run with default directory /sudo::root
  2020-05-03 20:25   ` akater
@ 2020-05-04  7:02     ` Michael Albinus
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Albinus @ 2020-05-04  7:02 UTC (permalink / raw)
  To: akater; +Cc: 41042-done

akater <nuclearspace@gmail.com> writes:

Hi,

> Thank you, everything is fine now.

Thanks for the confirmation, I'm closing the bug.

> It looks like not many users of live Emacs builds also use compile over
> tramp feature, as this haven't been reported earlier.  That's
> unexpected.  (I build and install ≈everything this way.)

Well, this happens only for Tramp connections which have a session
timeout (sudo, doas) and for compilations which run longer than the
timeout (300 sec per default). Perhaps this doesn't happen for the
majority of users.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-04  7:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-03  7:48 bug#41042: Compilation (Comint) is consistently killed when run with default directory /sudo::root akater
2020-05-03 12:26 ` Michael Albinus
2020-05-03 20:25   ` akater
2020-05-04  7:02     ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).