patch-Modules_posixmodule_c 717 B

12345678910111213141516
  1. --- Python-2.7.1.orig/Modules/posixmodule.c 2010-11-26 18:35:50.000000000 +0100
  2. +++ Python-2.7.1/Modules/posixmodule.c 2010-12-27 21:23:45.000000000 +0100
  3. @@ -3775,13 +3775,6 @@ posix_openpty(PyObject *self, PyObject *
  4. slave_fd = open(slave_name, O_RDWR | O_NOCTTY); /* open slave */
  5. if (slave_fd < 0)
  6. return posix_error();
  7. -#if !defined(__CYGWIN__) && !defined(HAVE_DEV_PTC)
  8. - ioctl(slave_fd, I_PUSH, "ptem"); /* push ptem */
  9. - ioctl(slave_fd, I_PUSH, "ldterm"); /* push ldterm */
  10. -#ifndef __hpux
  11. - ioctl(slave_fd, I_PUSH, "ttcompat"); /* push ttcompat */
  12. -#endif /* __hpux */
  13. -#endif /* HAVE_CYGWIN */
  14. #endif /* HAVE_OPENPTY */
  15. return Py_BuildValue("(ii)", master_fd, slave_fd);