diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-09-27 08:05:37 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-09-27 08:05:37 +0000 |
commit | f51703eb00bb23720d788604726164526019c247 (patch) | |
tree | 22725901757a9a50f599da26d479776130079b49 /debian/patches/disable-proc_getnports.patch | |
parent | 7aa412693b35988f5edee0e6e3b797e1995f1ef4 (diff) |
Disable usage of proc_getnports
* debian/patches/disable-proc_getnports.patch: New patch to disable
usage of proc_getnports until libc0.3 provides it.
Diffstat (limited to 'debian/patches/disable-proc_getnports.patch')
-rw-r--r-- | debian/patches/disable-proc_getnports.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/disable-proc_getnports.patch b/debian/patches/disable-proc_getnports.patch new file mode 100644 index 00000000..d8776835 --- /dev/null +++ b/debian/patches/disable-proc_getnports.patch @@ -0,0 +1,16 @@ +diff --git a/libps/procstat.c b/libps/procstat.c +index eac4ae4..55d5b7e 100644 +--- a/libps/procstat.c ++++ b/libps/procstat.c +@@ -990,9 +990,11 @@ proc_stat_set_flags (struct proc_stat *ps, ps_flags_t flags) + if (ps_context_find_tty_by_cttyid (ps->context, ps->cttyid, &ps->tty) == 0) + have |= PSTAT_TTY; + ++#if 0 + /* The number of Mach ports in the task. */ + MGET (PSTAT_NUM_PORTS, PSTAT_PID, + proc_getnports (server, ps->pid, &ps->num_ports)); ++#endif + + /* Update PS's flag state. We haven't tried user flags yet, so don't mark + them as having failed. We do this before checking user bits so that the |