diff options
| author | Darrell Anderson <humanreadable@yahoo.com> | 2012-08-09 13:00:30 -0500 |
|---|---|---|
| committer | Darrell Anderson <humanreadable@yahoo.com> | 2012-08-09 13:00:30 -0500 |
| commit | 34ddcfd05b2b4772eeb70493726e0f8c8b40a3af (patch) | |
| tree | 8b1d100ee7f3ff0a997338b2e0424392121c09fa /src/kernel/qprocess_unix.cpp | |
| parent | 785106b36c47923c338b6d3d61584eea448863ca (diff) | |
| parent | b6053b1b40b51e3d9b1b679a8a1751e5472e06e2 (diff) | |
| download | tqt-34ddcfd05b2b4772eeb70493726e0f8c8b40a3af.tar.gz tqt-34ddcfd05b2b4772eeb70493726e0f8c8b40a3af.zip | |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tqt3
Diffstat (limited to 'src/kernel/qprocess_unix.cpp')
| -rw-r--r-- | src/kernel/qprocess_unix.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/kernel/qprocess_unix.cpp b/src/kernel/qprocess_unix.cpp index ff68a8860..01eb202df 100644 --- a/src/kernel/qprocess_unix.cpp +++ b/src/kernel/qprocess_unix.cpp @@ -813,7 +813,9 @@ bool TQProcess::start( TQStringList *env ) ::dup2( STDOUT_FILENO, STDERR_FILENO ); } #ifndef QT_NO_DIR - ::chdir( workingDir.absPath().latin1() ); + if (::chdir( workingDir.absPath().latin1() ) < 0) { + tqWarning( "Could not chdir" ); + } #endif if ( fd[0] ) ::close( fd[0] ); @@ -890,7 +892,9 @@ bool TQProcess::start( TQStringList *env ) } if ( fd[1] ) { char buf = 0; - ::write( fd[1], &buf, 1 ); + if (::write( fd[1], &buf, 1 ) < 0) { + tqWarning( "Could not write to file descriptor" ); + } ::close( fd[1] ); } ::_exit( -1 ); |
