tcdrain 7262 src/process.c if (tcdrain (XPROCESS (proc)->outfd) != 0) tcdrain 1546 src/sysdep.c while (tcdrain (fileno (tty_out->output)) != 0 && errno == EINTR)