[INN] #39: setproctitle doesn't work with /usr/ucb/ps on Solaris 8 & 9

INN rra at stanford.edu
Sun Dec 14 07:43:05 UTC 2008

#39: setproctitle doesn't work with /usr/ucb/ps on Solaris 8 & 9
 Reporter:  eagle   |       Owner:  eagle
     Type:  defect  |      Status:  new  
 Priority:  low     |   Milestone:       
Component:  lib     |     Version:       
 Severity:  minor   |    Keywords:       
 Reported by Miroslaw Luc <mirecki at nask.pl>.

  1. 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];)

  2. 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:

  1. Set argv[``1] to NULL in setproctitle().
  2. Move the environment to malloc()'ed space to make a room for
  3. Spawn nnrpd without `-s'.
  4. 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.

Ticket URL: <http://inn-new.eyrie.org/trac/ticket/39>
INN <http://www.eyrie.org/~eagle/software/inn/>

More information about the inn-bugs mailing list