Variable: comint-redirect-original-filter-function

The process filter that was in place when redirection is started.
When redirection is completed, the process filter is restored to
this value.