SC_INSPECTME(2)
SCORE-D SYSTEM CALLS
SC_INSPECTME(2)
NAME
sc_inspectme - attach a debugger

SYNOPSIS
#include <sc.h>

int sc_inspectme(char *display, int signal)

DESCRIPTION
The sc_inspectme() function attaches a debugger (GDB) to the calling process, and the parallel process, including the calling process, becomes a zombie. The zombie parallel process will be destroyed when all debuggers are detached, or when the front-end process is killed. The debugger attachment takes place only when the 'debug' SCore runtime option is specified, and the number of simultaneous debugger attachments is limited by the option.

When the display variable is set to NULL, then the value of DISPLAY environment is used. The signal variable is an arbitrary number to be displayed in the debugger attachment message.

RETURN VALUES
Although the sc_inspectme() function return type is int, it doesn't return a value.

CREDIT
This document is a part of the SCore cluster system software developed at PC Cluster Consortium, Japan. Copyright (C) 2003 PC Cluster Consortium.