Changeset 722


Ignore:
Timestamp:
May 10, 2007 2:32:13 PM (16 years ago)
Author:
nkissebe
Message:

leave read end of request pipe open when launching client to prevent
SIGPIPE condition when nanoscale terminates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/vizservers/nanoscale/server.c

    r716 r722  
    578578                dup2(i,2);  // stderr
    579579                dup2(pair[1],3);
    580 
    581                 for(fd=4; fd<FD_SETSIZE; fd++)
     580                // read end of pipe moved, and left open to prevent SIGPIPE
     581                dup2(pair[0],4);
     582
     583                for(fd=5; fd<FD_SETSIZE; fd++)
    582584                  close(fd);
    583585
Note: See TracChangeset for help on using the changeset viewer.