From 8805afa8c607ac6028207434f78a7cd90a9df64b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 8 Aug 2012 17:42:21 -0500 Subject: Fix problems in prior style API changes --- src/kernel/qprocess_unix.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/kernel/qprocess_unix.cpp') diff --git a/src/kernel/qprocess_unix.cpp b/src/kernel/qprocess_unix.cpp index 40476d3..2a4a2fd 100644 --- a/src/kernel/qprocess_unix.cpp +++ b/src/kernel/qprocess_unix.cpp @@ -813,7 +813,9 @@ bool QProcess::start( QStringList *env ) ::dup2( STDOUT_FILENO, STDERR_FILENO ); } #ifndef QT_NO_DIR - ::chdir( workingDir.absPath().latin1() ); + if (::chdir( workingDir.absPath().latin1() ) < 0) { + qWarning( "Could not chdir" ); + } #endif if ( fd[0] ) ::close( fd[0] ); @@ -890,7 +892,9 @@ bool QProcess::start( QStringList *env ) } if ( fd[1] ) { char buf = 0; - ::write( fd[1], &buf, 1 ); + if (::write( fd[1], &buf, 1 ) < 0) { + qWarning( "Could not write to file descriptor" ); + } ::close( fd[1] ); } ::_exit( -1 ); -- cgit v1.2.3