Opened 14 years ago
#39 new defect
setproctitle doesn't work with /usr/ucb/ps on Solaris 8 & 9
Reported by: | eagle | Owned by: | eagle |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | lib | Version: | |
Severity: | minor | Keywords: | |
Cc: |
Description
Reported by Miroslaw Luc <mirecki@…>.
- ps reads all of the strings from argv[], not just argv[
0] to the nearest NULL. Setting argv[
1] to NULL helps ps to read only argv[
0];)
- If the length of the initial args > argv[
0] modified by setproctitle() then ps discards the latter and displays the initial args. The problem is that it is always true because of using SPACES in ovdb_monitor/ovdb_server and `-s' in nnrpd.
We should:
- Set argv[
1] to NULL in setproctitle().
- Move the environment to malloc()'ed space to make a room for argv[
0].
- Spawn nnrpd without `-s'.
- Remove SPACES from ovdb_init,monitor,server.
It's not clear if this is worth it; setproctitle() seems to be getting less and less popular.
Attachments (1)
Note: See
TracTickets for help on using
tickets.
Patch against STABLE 20051208