ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/ptytty.C
(Generate patch)

Comparing rxvt-unicode/src/ptytty.C (file contents):
Revision 1.36 by root, Tue Jan 17 10:59:32 2006 UTC vs.
Revision 1.37 by root, Tue Jan 17 11:02:10 2006 UTC

222 * Make our tty a controlling tty so that /dev/tty points to us 222 * Make our tty a controlling tty so that /dev/tty points to us
223 */ 223 */
224static int 224static int
225control_tty (int fd_tty) 225control_tty (int fd_tty)
226{ 226{
227#ifndef __QNX__
228 int fd; 227 int fd;
229 228
230 /* ---------------------------------------- */ 229 /* ---------------------------------------- */
231# ifdef HAVE_SETSID 230# ifdef HAVE_SETSID
232 setsid (); 231 setsid ();
286 fd = open ("/dev/tty", O_WRONLY); 285 fd = open ("/dev/tty", O_WRONLY);
287 if (fd < 0) 286 if (fd < 0)
288 return -1; /* fatal */ 287 return -1; /* fatal */
289 close (fd); 288 close (fd);
290 /* ---------------------------------------- */ 289 /* ---------------------------------------- */
291#endif /* ! __QNX__ */
292 290
293 return 0; 291 return 0;
294} 292}
295 293
296void 294void

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines