Changeset 2339


Ignore:
Timestamp:
Aug 9, 2011 8:10:23 PM (13 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

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

    r2336 r2339  
     1
    12#include <stdio.h>
    23#include <unistd.h>
     
    534535                                int fd;
    535536
    536                                 dup2(i, 0);  // stdin
    537                                 dup2(i, 1);  // stdout
    538                                 dup2(i, 2);  // stderr
     537                                dup2(i, 0); // stdin
     538                                dup2(i, 1); // stdout
     539                                dup2(i, 2); // stderr
    539540                                dup2(pair[1],3);
    540541                                // read end of pipe moved, and left open to
     
    548549                                    displayVar[11] = dispNum + '0';
    549550                                }
     551                                fprintf(stderr, "command=%s\n",
     552                                        command_argv[n][0]);
    550553                                if (execvp(command_argv[n][0], command_argv[n]) < 1) {
    551554                                    extern int errno;
Note: See TracChangeset for help on using the changeset viewer.