Variable: process-file-return-signal-string

process-file-return-signal-string is a customizable variable defined in simple.el.gz.

Value

nil

Documentation

Whether to return a string describing the signal interrupting a process.

When a process returns an exit code greater than 128, it is interpreted as a signal. process-file requires to return a string describing this signal. Since there are processes violating this rule, returning exit codes greater than 128 which are not bound to a signal, process-file returns the exit code as natural number also in this case. Setting this user option to non-nil forces process-file to interpret such exit codes as signals, and to return a corresponding string.

This variable was added, or its default value changed, in Emacs 28.1.

Probably introduced at or before Emacs version 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defcustom process-file-return-signal-string nil
  "Whether to return a string describing the signal interrupting a process.
When a process returns an exit code greater than 128, it is
interpreted as a signal.  `process-file' requires to return a
string describing this signal.
Since there are processes violating this rule, returning exit
codes greater than 128 which are not bound to a signal,
`process-file' returns the exit code as natural number also in
this case.  Setting this user option to non-nil forces
`process-file' to interpret such exit codes as signals, and to
return a corresponding string."
  :version "28.1"
  :type 'boolean)