comparison uip/rcvtty.c @ 13:3c5835cca094

fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 21 Apr 2012 15:40:28 +0900
parents 441a2190cfae
children 07f8972434be
comparison
equal deleted inserted replaced
12:441a2190cfae 13:3c5835cca094
259 rewind (stdin); 259 rewind (stdin);
260 if (dup2 (fd, 1) == NOTOK || dup2 (fd, 2) == NOTOK) 260 if (dup2 (fd, 1) == NOTOK || dup2 (fd, 2) == NOTOK)
261 _exit (-1); 261 _exit (-1);
262 closefds (3); 262 closefds (3);
263 #ifdef BSD42 263 #ifdef BSD42
264 (void) setpgrp (0, getpid ()); 264 (void) setpgrp (); // (void) setpgrp (0, getpid ());
265 #endif /* BSD42 */ 265 #endif /* BSD42 */
266 #ifdef SVR4 266 #ifdef SVR4
267 (void) setsid(); 267 (void) setsid();
268 #endif /* SVR4 */ 268 #endif /* SVR4 */
269 execvp (vec[0], vec); 269 execvp (vec[0], vec);