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
|
;; Child
|
||||||
(lambda () ; Do all this outside the WITH-INTERRUPTS.
|
(lambda () ; Do all this outside the WITH-INTERRUPTS.
|
||||||
; (set! reaped-procs '())
|
; (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.
|
(set-batch-mode?! #t)) ; Children are non-interactive.
|
||||||
(and (pair? maybe-thunk)
|
(and (pair? maybe-thunk)
|
||||||
(call-terminally (car maybe-thunk))))
|
(call-terminally (car maybe-thunk))))
|
||||||
|
|
Loading…
Reference in New Issue