Changeset 19132
- Timestamp:
- 04/25/12 23:37:18 (13 months ago)
- File:
-
- 1 edited
-
src/router/ipeth/ipheth-pair/ipheth-pair.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/router/ipeth/ipheth-pair/ipheth-pair.c
r19131 r19132 134 134 void main(int argc, char *argv[]) 135 135 { 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 136 system("ifconfig iph0 up"); 137 return ipeth_main(argc,argv); 156 138 157 139 }
Note: See TracChangeset
for help on using the changeset viewer.
