Skip to content
Commits on May 2, 2011
  1. Example of changing the process name in Perl 5

    committed May 2, 2011
    BSD systems will still require some C or XS shenanigans to fully
    hide the original process name.
  2. @ioerror

    add FreeBSD note

    ioerror committed May 1, 2011
  3. @ioerror

    Add FreeBSD setproctitle() support

    ioerror committed May 1, 2011
    FreeBSD is a little crafty and while you can set the process name to something
    new - the old process name sticks around.
    
    eg:
    
    Python 2.5.4 (r254:67916, Apr 14 2009, 08:39:49)
    [GCC 4.2.1 20070719  [FreeBSD]] on freebsd7
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import karmakarma
    >>> karmakarma.chameleon('/usr/lib/openssh/sftp-server')
    /usr/lib/openssh/sftp-server
    /usr/lib/openssh/sftp-server
    <karmakarma.chameleon instance at 0x801334b90>
    >>>
    [1]+  Stopped                 python
    [ioerror@freebsd ~]$ ps auxw|grep python
    ioerror 81643  0.0  0.3 22080  5572  p0  T     6:32AM   0:00.03 /usr/lib/openssh/sftp-server: /usr/lib/openssh/sftp-server (python)
  4. @ioerror
Something went wrong with that request. Please try again.