def get_the_processes_name(executed_cursor, pid):
    """Return the process name."""
    process_name_query = """
                SELECT name, argv
                FROM executed_files
                WHERE process = %s
                """
    executed_cursor.execute(process_name_query % pid)
    return executed_cursor.fetchall()
