Fork sets batch-mode in child only if there is a session.
This commit is contained in:
parent
e18688fc14
commit
04fc3b8b37
|
@ -866,7 +866,9 @@
|
|||
;; Child
|
||||
(lambda () ; Do all this outside the WITH-INTERRUPTS.
|
||||
; (set! reaped-procs '())
|
||||
(if clear-interactive?
|
||||
|
||||
;;; There is no session if parent was started in batch-mode
|
||||
(if (and (session-started?) clear-interactive?)
|
||||
(set-batch-mode?! #t)) ; Children are non-interactive.
|
||||
(and (pair? maybe-thunk)
|
||||
(call-terminally (car maybe-thunk))))
|
||||
|
|
Loading…
Reference in New Issue