* bug#57199: 29.0.50; Processes spawned by Emacs become zombie after restarting
@ 2022-08-14 7:30 Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-14 7:52 ` Eli Zaretskii
0 siblings, 1 reply; 5+ messages in thread
From: Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-08-14 7:30 UTC (permalink / raw)
To: 57199
[-- Attachment #1: Type: text/plain, Size: 16776 bytes --]
Some child processes don't terminate when Emacs kills them (e.g. Tor).
So, trying to kill them after restarting Emacs with "restart-emacs"
makes those processes zombie. So I have to kill Emacs to remove those
zombies.
------------------------------------------------------------------------
In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0)
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Guix System
Configured using:
'configure
CONFIG_SHELL=/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash
SHELL=/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash
--prefix=/gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b
--enable-fast-install --with-native-compilation --with-sqlite3
--with-xinput2 --with-xwidgets --with-modules --with-cairo
--disable-build-details'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3
THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3
ZLIB
Important settings:
value of $EMACSLOADPATH: /home/akib/.guix-profile/share/emacs/site-lisp:/gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp
value of $LANG: en_US.utf8
value of $XMODIFIERS: @im=exwm-xim
locale-coding-system: utf-8-unix
Major mode: Fundamental
Minor modes in effect:
shell-dirtrack-mode: t
diff-hl-margin-mode: t
diff-hl-flydiff-mode: t
gcmh-mode: t
server-mode: t
gtags-mode: t
corfu-doc-mode: t
corfu-history-mode: t
global-corfu-mode: t
isearch-mb-mode: t
global-auto-revert-mode: t
save-place-mode: t
electric-pair-mode: t
gc-buffers-mode: t
which-key-mode: t
marginalia-mode: t
vertico-mode: t
minibar-mode: t
workroom-mode: t
savehist-mode: t
recentf-mode: t
shackle-mode: t
blow-mode: t
leaf-key-override-global-mode: t
el-patch-use-package-mode: t
global-eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
buffer-read-only: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
Load-path shadows:
/home/akib/.config/emacs/elpa/transient-20220806.2224/transient hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/transient
/home/akib/.config/emacs/elpa/jsonrpc-1.0.15.0.20220714.101331/jsonrpc hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/jsonrpc
/home/akib/.config/emacs/elpa/xref-1.5.0.0.20220723.181339/xref hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/progmodes/xref
/home/akib/.config/emacs/elpa/project-0.8.1.0.20220617.122301/project hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/progmodes/project
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-desktop-notifications hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-desktop-notifications
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-speedbar hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-speedbar
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-imenu hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-imenu
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-pcomplete hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-pcomplete
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-compat hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-compat
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-replace hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-replace
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-notify hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-notify
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-stamp hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-stamp
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-capab hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-capab
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-lang hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-lang
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-loaddefs hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-loaddefs
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-match hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-match
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-list hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-list
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-truncate hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-truncate
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-services hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-services
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-sound hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-sound
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-button hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-button
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-dcc hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-dcc
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-page hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-page
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-log hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-log
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-goodies hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-goodies
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-ezbounce hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-ezbounce
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-menu hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-menu
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-join hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-join
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-xdcc hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-xdcc
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-ibuffer hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-ibuffer
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-status-sidebar hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-status-sidebar
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-netsplit hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-netsplit
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-spelling hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-spelling
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-networks hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-networks
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-autoaway hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-autoaway
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-track hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-track
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-backend hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-backend
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-ring hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-ring
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-identd hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-identd
/home/akib/.config/emacs/elpa/erc-5.4.1.0.20220727.51909/erc-fill hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/erc/erc-fill
/home/akib/.config/emacs/elpa/eldoc-1.13.0.0.20220802.95655/eldoc hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/emacs-lisp/eldoc
/home/akib/.config/emacs/elpa/seq-2.23.0.20210925.195432/seq hides /gnu/store/kbim2zycpr57xyj9dbh8r013srkaaif3-emacs-edge-29.0.50-1.686296b/share/emacs/29.0.50/lisp/emacs-lisp/seq
Features:
(shadow emacsbug find-dired ffap grep smerge-mode flow-fill gnus-fun
dired-aux vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs diredfl cape
hi-lock misearch multi-isearch checkdoc consult-vertico consult
compat-28 kind-icon svg-lib gnus-bcklg shell epa-file gnus-async
mailalias smtpmail qp highlight-defined package-lint-flymake
package-lint let-alist finder lisp-mnt paredit highlight-quoted
aggressive-indent highlight-numbers parent-mode highlight-indent-guides
highlight-thing flymake-popon posframe popon flymake-proc flymake
compile org-element avl-tree generator ol-eww ol-rmail ol-mhe ol-irc
ol-info ol-gnus ol-docview doc-view image-mode exif ol-bibtex ol-bbdb
ol-w3m ol-doi org-link-doi org ob ob-tangle ob-ref ob-lob ob-table
ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete
org-list org-faces org-entities noutline outline org-version
ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex ol org-keys oc
org-compat advice org-macs org-loaddefs cal-menu calendar cal-loaddefs
ecomplete vc-git diff-hl-margin diff-hl-dired diff-hl-flydiff diff
diff-hl log-view pcvs-util vc-dir ewoc vc vc-dispatcher diff-mode
why-this bbdb bbdb-site timezone eudc-capf eudc cus-start eudc-vars
gnus-cite mail-extr footnote flyspell ispell
display-fill-column-indicator ws-butler hl-todo compat sort gnus-ml
nndraft nnmh mm-archive gnus-search eieio-opt speedbar ezimage dframe
nnrss nnselect nnmaildir nnfolder nnnil gnus-agent gnus-srvr gnus-score
score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime
smime dig nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start
gnus-dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec
gnus-int gnus-range message sendmail yank-media dired dired-loaddefs
rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode
mm-bodies mm-encode mailabbrev gmm-utils mailheader gnus-win lin hl-line
display-line-numbers sh-script smie executable rng-xsd xsd-regexp
rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse
rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln
nxml-rap sgml-mode facemenu nxml-util nxml-enc xmltok sql view shr-color
color elisp-demos info-colors rainbow-delimiters helpful imenu edebug
debug backtrace info-look find-func f f-shortdoc shortdoc elisp-refs s
dash parse-time iso8601 cc-awk cc-mode cc-fonts cc-guess cc-menus
cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
shr-tag-pre-highlight language-detection jka-compr textsec uni-scripts
idna-mapping ucs-normalize uni-confusable textsec-check gnutls
network-stream url-http mail-parse rfc2231 rfc2047 rfc2045 ietf-drums
url-gw nsm url-cache url-auth format-spec face-remap iwindow eww xdg
url-queue thingatpt shr pixel-fill kinsoku url-file svg dom puny mm-url
gnus nnheader gnus-util mail-utils range mm-util mail-prsvr dmenu comint
ansi-color mode-line-bell battery dbus xml mule-util orderless mb-depth
pinentry time-date modus-vivendi-theme modus-themes gcmh init comp
comp-cstr warnings exwm-xim xcb-xim xcb-xlib exwm-randr xcb-randr exwm
exwm-input xcb-keysyms xcb-xkb exwm-manage exwm-floating xcb-cursor
xcb-render exwm-layout exwm-workspace exwm-core xcb-ewmh xcb-icccm xcb
xcb-xproto xcb-types xcb-debug server auth-source-pass gtags-mode
files-x xref project corfu-doc corfu-history corfu isearch-mb autorevert
filenotify saveplace elec-pair gc-buffers which-key marginalia vertico
minibar workroom bookmark text-property-search disp-table savehist
recentf tree-widget shackle trace blow edmacro kmacro pcase cl-extra
cus-edit pp cus-load icons wid-edit leaf finder-inf vterm-autoloads
guix-emacs cape-autoloads corfu-autoloads crux-autoloads easy-mmode
el-patch el-patch-stub eldoc-autoloads async-autoloads consult-autoloads
forge-autoloads geiser-impl help-fns radix-tree help-mode geiser-custom
geiser-base ring ghub-autoloads rx geiser-autoloads magit-autoloads
git-commit-autoloads mastodon-autoloads modus-themes-autoloads
notmuch-autoloads nov-autoloads org-roam-ui-autoloads org-roam-autoloads
magit-section-autoloads sx-autoloads transient-autoloads
vertico-autoloads which-key-autoloads with-editor-autoloads info
compat-autoloads package browse-url url url-proxy url-privacy url-expand
url-methods url-history url-cookie generate-lisp-file url-domsuf
url-util mailcap url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp
byte-compile cconv url-vars cl-loaddefs cl-lib rmc iso-transl tooltip
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
faces cus-face macroexp files window text-properties overlay sha1 md5
base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads xwidget-internal dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
cairo move-toolbar gtk x-toolkit xinput2 x multi-tty
make-network-process native-compile emacs)
Memory information:
((conses 16 1473349 1276686)
(symbols 48 75485 264)
(strings 32 385189 389346)
(string-bytes 1 17340803)
(vectors 16 349285)
(vector-slots 8 4109558 1552979)
(floats 8 91649 4465)
(intervals 56 49274 17189)
(buffers 992 55))
--
Akib Azmain Turja
Find me on Mastodon at @akib@hostux.social.
This message is signed by me with my GnuPG key. Its fingerprint is:
7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#57199: 29.0.50; Processes spawned by Emacs become zombie after restarting
2022-08-14 7:30 bug#57199: 29.0.50; Processes spawned by Emacs become zombie after restarting Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-08-14 7:52 ` Eli Zaretskii
2022-08-14 12:05 ` Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2022-08-14 7:52 UTC (permalink / raw)
To: Akib Azmain Turja; +Cc: 57199
> Date: Sun, 14 Aug 2022 13:30:26 +0600
> From: Akib Azmain Turja via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
> Some child processes don't terminate when Emacs kills them (e.g. Tor).
What is special in those processes? How do they avoid being killed by
Emacs?
> So, trying to kill them after restarting Emacs with "restart-emacs"
> makes those processes zombie. So I have to kill Emacs to remove those
> zombies.
If a process actively resists being killed, then what you see is the
expected behavior, determined by the underlying OS.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#57199: 29.0.50; Processes spawned by Emacs become zombie after restarting
2022-08-14 7:52 ` Eli Zaretskii
@ 2022-08-14 12:05 ` Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-15 7:11 ` Lars Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-08-14 12:05 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 57199
[-- Attachment #1: Type: text/plain, Size: 1221 bytes --]
Eli Zaretskii <eliz@gnu.org> writes:
>> Date: Sun, 14 Aug 2022 13:30:26 +0600
>> From: Akib Azmain Turja via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>>
>> Some child processes don't terminate when Emacs kills them (e.g. Tor).
>
> What is special in those processes? How do they avoid being killed by
> Emacs?
IIUC, Emacs sends SIGHUP (from kill_buffer_processes in process.c) to
all child processes to kill them just before exiting (or restarting),
and Tor uses that signal as the reload signal.
>
>> So, trying to kill them after restarting Emacs with "restart-emacs"
>> makes those processes zombie. So I have to kill Emacs to remove those
>> zombies.
>
> If a process actively resists being killed, then what you see is the
> expected behavior, determined by the underlying OS.
How can a process resist being killed? SIGKILL is lethal, always. Why
kill-emacs sends SIGHUP while kill-process and delete-process sends
SIGKILL?
--
Akib Azmain Turja
Find me on Mastodon at @akib@hostux.social.
This message is signed by me with my GnuPG key. Its fingerprint is:
7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#57199: 29.0.50; Processes spawned by Emacs become zombie after restarting
2022-08-14 12:05 ` Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-08-15 7:11 ` Lars Ingebrigtsen
2022-08-15 9:50 ` Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2022-08-15 7:11 UTC (permalink / raw)
To: Akib Azmain Turja; +Cc: 57199, Eli Zaretskii
Akib Azmain Turja <akib@disroot.org> writes:
> IIUC, Emacs sends SIGHUP (from kill_buffer_processes in process.c) to
> all child processes to kill them just before exiting (or restarting),
> and Tor uses that signal as the reload signal.
[...]
> How can a process resist being killed? SIGKILL is lethal, always. Why
> kill-emacs sends SIGHUP while kill-process and delete-process sends
> SIGKILL?
Because we want processes started by Emacs to be allowed to shut down
gracefully upon Emacs exit, but with explicit `kill-process', we don't
care about that as much.
So the problem here is that you're starting a process that responds to
SIGHUP by not shutting down, and I don't think there's anything we can
do on the Emacs side to help with that. Perhaps you can write a wrapper
script that does the right thing on HUP.
But I don't think there's anything to be done on the Emacs side here, so
I'm closing this bug report.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#57199: 29.0.50; Processes spawned by Emacs become zombie after restarting
2022-08-15 7:11 ` Lars Ingebrigtsen
@ 2022-08-15 9:50 ` Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 0 replies; 5+ messages in thread
From: Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-08-15 9:50 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 57199, Eli Zaretskii
[-- Attachment #1: Type: text/plain, Size: 1345 bytes --]
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Akib Azmain Turja <akib@disroot.org> writes:
>
>> IIUC, Emacs sends SIGHUP (from kill_buffer_processes in process.c) to
>> all child processes to kill them just before exiting (or restarting),
>> and Tor uses that signal as the reload signal.
>
> [...]
>
>> How can a process resist being killed? SIGKILL is lethal, always. Why
>> kill-emacs sends SIGHUP while kill-process and delete-process sends
>> SIGKILL?
>
> Because we want processes started by Emacs to be allowed to shut down
> gracefully upon Emacs exit, but with explicit `kill-process', we don't
> care about that as much.
>
> So the problem here is that you're starting a process that responds to
> SIGHUP by not shutting down, and I don't think there's anything we can
> do on the Emacs side to help with that. Perhaps you can write a wrapper
> script that does the right thing on HUP.
>
> But I don't think there's anything to be done on the Emacs side here, so
> I'm closing this bug report.
>
>
>
Why there is nothing to do? Emacs can "wait" on the child when it
exits, or it might disown it.
--
Akib Azmain Turja
Find me on Mastodon at @akib@hostux.social.
This message is signed by me with my GnuPG key. Its fingerprint is:
7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-08-15 9:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-14 7:30 bug#57199: 29.0.50; Processes spawned by Emacs become zombie after restarting Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-14 7:52 ` Eli Zaretskii
2022-08-14 12:05 ` Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-15 7:11 ` Lars Ingebrigtsen
2022-08-15 9:50 ` Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
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).