summaryrefslogtreecommitdiff
path: root/microkernel/mach/gnumach/interface/task_set_name.mdwn
blob: c32a24ff723eca1bb6774d54a4882fae6e02d6b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[[!meta copyright="Copyright © 2013, 2014 Free Software Foundation, Inc."]]

[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable
id="license" text="Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no Invariant
Sections, no Front-Cover Texts, and no Back-Cover Texts.  A copy of the license
is included in the section entitled [[GNU Free Documentation
License|/fdl]]."]]"""]]

/!\ Does this actually reflect reality?

[[!tag open_issue_documentation open_issue_gnumach]]

A `task_set_name` RPC has been added to GNU Mach.  Before, the Mach debugger
looked for `arg[0]` on the stack using ugly heuristics (see
`gnumach/i386/i386/db_interface.c`, `looks_like_command`...).  Now we can let
`exec` simply set the name and record it in `task_t`.  After adding the RPC,
glibc needs to be recompiled against the updated `mach.defs` to get access to
it from userland, and exec would probably call it from `hurd/exec/exec.c`,
`do_exec()`.  Also see the discussion on
[[open_issues/translate_fd_or_port_to_file_name]].