def get_name_for_fd(fd):
        """
        Return the process name for a given process ID.
        """
        pgrp = os.tcgetpgrp(fd)

        try:
            return get_proc_name(pgrp)
        except __HOLE__:
            pass
dataset/ETHPy150Open jonathanslenders/pymux/pymux/process.py/get_name_for_fd