Introspectable wrapper around tcgetpgrp()
In a GJS application based on VTE, I want to detect if there are multiple processes running in the terminal (more than just the shell), and show a warning, like Gnome Terminal does ("There is still a process running in this terminal. Closing the terminal will kill it."). To do this I need to call
tcgetpgrp(). However, there are no introspectable wrappers for it available -> it can't be called from GJS.
Attached patch adds
vte_pty_get_foreground_process_group() that simply calls