Changeset 578 for trunk/src/gui/painting/qpdf.cpp
- Timestamp:
- Feb 18, 2010, 3:27:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/painting/qpdf.cpp
r574 r578 1693 1693 pr = printerName; 1694 1694 int fds[2]; 1695 #ifdef Q_WS_PM1696 if (::pipe(fds) != 0) {1697 #else1698 1695 if (qt_safe_pipe(fds) != 0) { 1699 #endif1700 1696 qWarning("QPdfPrinter: Could not open pipe to print"); 1701 1697 return false; … … 1718 1714 ::_exit(0); 1719 1715 } 1720 #ifdef Q_WS_PM1721 ::dup2(fds[0], 0);1722 #else1723 1716 qt_safe_dup2(fds[0], 0, 0); 1724 #endif1725 1717 1726 1718 closeAllOpenFds(); … … 1799 1791 QT_CLOSE(fds[0]); 1800 1792 fd = fds[1]; 1801 #ifdef Q_WS_PM1802 (void)::waitpid(pid, 0, 0);1803 #else1804 1793 (void)qt_safe_waitpid(pid, 0, 0); 1805 #endif 1794 1806 1795 if (fd < 0) 1807 1796 return false;
Note:
See TracChangeset
for help on using the changeset viewer.