Changeset 19132


Ignore:
Timestamp:
04/25/12 23:37:18 (13 months ago)
Author:
BrainSlayer
Message:

we use another method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/ipeth/ipheth-pair/ipheth-pair.c

    r19131 r19132  
    134134void main(int argc, char *argv[]) 
    135135{ 
    136 if (argc>1) 
    137         return ipeth_main(argc,argv); 
    138      
    139     pid_t pid; 
    140         pid = fork(); 
    141         switch (pid) { 
    142         case -1: 
    143                 perror("fork failed"); 
    144                 exit(1); 
    145         case 0: 
    146                 for (;;) { 
    147                     system("ifconfig iph0 up"); 
    148                     ipeth_main(argc,argv); 
    149                 } 
    150                 break; 
    151         default: 
    152                 _exit(0); 
    153                 break; 
    154         } 
    155  
     136system("ifconfig iph0 up"); 
     137return ipeth_main(argc,argv); 
    156138 
    157139} 
Note: See TracChangeset for help on using the changeset viewer.