src/axl_async_bbapi.c
/* We're either running on a compute node with access to the BBAPI, or
 * we're running on a post-stage job node where we have to spawn bbapi.
 *
 * Return 1 if we're a post-stage node, 0 otherwise. */
We're either running on a compute node with access to the BBAPI, or
we're running on a post-stage job node where we have to spawn bbapi.

Return 1 if we're a post-stage node, 0 otherwise.
We ' re either running on a compute node with access to the BBAPI or we ' re running on a post - stage job node where we have to spawn bbapi . Return 1 if we ' re a post - stage node 0 otherwise .
static int this_is_a_post_stage_node(void)
{
    if (getenv("LSF_STAGE_USER_STAGE_OUT") != NULL) {
        return 1;
    }
    return 0;
}
static int this_is_a_post_stage_node ( void ) { if ( getenv ( " " ) != NULL ) { return 1 ; } return 0 ; }
We're either running on a compute node with access to the BBAPI, or
 we're running on a post-stage job node where we have to spawn bbapi.
We ' re either running on a compute node with access to the BBAPI or we ' re running on a post - stage job node where we have to spawn bbapi .