Changeset 4906

Show
Ignore:
Timestamp:
07/06/09 14:43:19 (8 months ago)
Author:
jayesh
Message:

1) When stdin is closed and there is no data to read don't send any data back to mpiexec or post a read on the fd - let the state machine close this fd gracefully (2) If a read on a socket fails because the socket is closed don't print an error msg - printing a debug mesg instead - This should fix ticket #633

Location:
mpich2/trunk/src/pm/smpd
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • mpich2/trunk/src/pm/smpd/smpd_state_machine.c

    r4589 r4906  
    10051005            smpd_dbg_printf("SMPDU_Sock_read(%d) failed (%s), assuming %s is closed.\n", 
    10061006                SMPDU_Sock_get_sock_id(context->sock), get_sock_error_string(result), smpd_get_context_str(context)); 
     1007            smpd_exit_fn(FCNAME); 
     1008            return SMPD_FAIL; 
    10071009        } 
    10081010        smpd_dbg_printf("%d bytes read from %s\n", num_read+1, smpd_get_context_str(context)); 
     
    10491051            smpd_dbg_printf("SMPDU_Sock_read(%d) failed (%s), assuming %s is closed.\n", 
    10501052                SMPDU_Sock_get_sock_id(context->sock), get_sock_error_string(result), smpd_get_context_str(context)); 
     1053            smpd_exit_fn(FCNAME); 
     1054            return SMPD_FAIL; 
    10511055        } 
    10521056        smpd_dbg_printf("%d bytes read from %s\n", num_read+1, smpd_get_context_str(context)); 
  • mpich2/trunk/src/pm/smpd/sock/poll/smpd_sock_immed.i

    r4589 r4906  
    294294            pollinfo->sock_set->id, pollinfo->sock_id); 
    295295        */ 
    296         smpd_err_printf("Trying to read from a closed socket, errno = %d (%s)\n", errno, strerror(errno)); 
     296        smpd_dbg_printf("Trying to read from a closed socket, errno = %d (%s)\n", errno, strerror(errno)); 
    297297        result = SMPD_FAIL; 
    298298