Function: gnus-set-process-query-on-exit-flag

Specify if query is needed for PROCESS when Emacs is exited.
If the second argument FLAG is non-nil, Emacs will query the user before
exiting or killing a buffer if PROCESS is running. This function
returns FLAG.

(fn PROCESS FLAG)