VirtualBox

Changeset 26316 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Feb 7, 2010 9:30:39 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57387
Message:

gcc warnings when compiling against newer libcs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/process-posix.cpp

    r23919 r26316  
    362362
    363363    if (!fNoChDir)
    364         chdir("/");
     364        int rcChdir = chdir("/");
    365365
    366366    /* Second fork to lose session leader status. */
     
    375375            char szBuf[256];
    376376            size_t cbPid = RTStrPrintf(szBuf, sizeof(szBuf), "%d\n", pid);
    377             write(fdPidfile, szBuf, cbPid);
     377            int rcWrite = write(fdPidfile, szBuf, cbPid);
    378378            close(fdPidfile);
     379            if (rcWrite < 0)
     380                return RTErrConvertFromErrno(errno)
    379381        }
    380382        exit(0);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette