equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
76 _dup2(oldStderr, 2); |
76 _dup2(oldStderr, 2); |
77 |
77 |
78 CSISException::ThrowIf(oldStderr == -1, CSISException::EFileProblem, "Failed in redirection operation"); |
78 CSISException::ThrowIf(oldStderr == -1, CSISException::EFileProblem, "Failed in redirection operation"); |
79 |
79 |
80 #ifdef __TOOLS2_LINUX__ |
80 #ifdef __TOOLS2_LINUX__ |
81 nulStderr = fopen("NULL", "w"); |
81 nulStderr = fopen("/dev/null", "w"); |
82 #else |
82 #else |
83 nulStderr = fopen("NUL:", "w"); |
83 nulStderr = fopen("NUL:", "w"); |
84 #endif |
84 #endif |
85 |
85 |
86 CSISException::ThrowIf(nulStderr == NULL, CSISException::EFileProblem, "Failed in redirection operation"); |
86 CSISException::ThrowIf(nulStderr == NULL, CSISException::EFileProblem, "Failed in redirection operation"); |