Changeset 5126f80 in mainline for uspace/app/trace/trace.c


Ignore:
Timestamp:
2017-03-08T11:42:17Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0d35511
Parents:
a737667e
git-author:
Jiri Zarevucky <zarevucky.jiri@…> (2017-03-08 11:42:17)
git-committer:
Jakub Jermar <jakub@…> (2017-03-08 11:42:17)
Message:

Merge from lp:~zarevucky-jiri/helenos/vfs-2.5/ revision 1946

Original commit messages:

1946: Jiri Zarevucky 2013-08-06 Relativize mount, add root handle to libc and remove root from VFS server. This wraps up the "relativization" phase.

Breakage:

  • Dynamic builds broken
  • Mount table lookups by name
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/trace/trace.c

    ra737667e r5126f80  
    512512                goto error;
    513513
    514         /* Send program pathname */
     514        /* Send program. */
    515515        rc = loader_set_program_path(ldr, path);
    516516        if (rc != EOK)
     
    523523
    524524        /* Send default files */
     525        int fd_root;
    525526        int fd_stdin;
    526527        int fd_stdout;
    527528        int fd_stderr;
     529       
     530        fd_root = vfs_root();
     531        if (fd_root >= 0) {
     532                rc = loader_add_inbox(ldr, "root", fd_root);
     533                close(fd_root);
     534                if (rc != EOK)
     535                        goto error;
     536        }
    528537       
    529538        if ((stdin != NULL) && (vfs_fhandle(stdin, &fd_stdin) == EOK)) {
Note: See TracChangeset for help on using the changeset viewer.