svn commit: samba r14079 - in branches/SAMBA_4_0/source: cldap_server kdc ldap_server nbt_server smb_server smbd web_server winbind wrepl_server

Stefan (metze) Metzmacher metze at samba.org
Thu Mar 9 20:25:39 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

simo schrieb:
> On Thu, 2006-03-09 at 17:48 +0000, metze at samba.org wrote:
>> Author: metze
>> Date: 2006-03-09 17:48:41 +0000 (Thu, 09 Mar 2006)
>> New Revision: 14079
>>
>> WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14079
>>
>> Log:
>> I just found the setproctitle library from alt linux:-)
>>
>> - add set_title hook to the process models
>> - use setproctitle library in process_model standard if available
>> - the the title for the task servers and on connections
> 
> This is a very not portable thing, and in my opinion also dangerous,
> IIRC it plays with a portion of memory you are not supposed to touch on
> Linux. If I remember it correctly some BSD has a reliable system call to
> do that, but in any case I do not see any advantage in being not
> consistent across platforms.

Ok, I added a --with-setproctitle configure option which is off by default.

I think it's worth having it because such a 'ps ax' output:

11839 pts/4    S+     0:00 bin/smbd -i --option=interfaces=vmnet9
- --option=wreplsrv:scavenging_interval=300 -d 4 --option=m
11840 pts/4    S+     0:00 smbd: task[smbsrv]
11841 pts/4    S+     0:00 smbd: task[dcesrv]
11842 pts/4    S+     0:00 smbd: task[nbtd]
11843 pts/4    S+     0:00 smbd: task[wreplsrv]
11844 pts/4    S+     0:00 smbd: task[cldapd]
11845 pts/4    S+     0:00 smbd: task[ldapsrv]
11846 pts/4    S+     0:00 smbd: task[kdc]
11847 pts/4    S+     0:01 smbd: task[websrv]
12250 pts/4    S+     0:00 smbd: conn[smbsrv] c[172.31.9.1:45514] s[172.31.9.1:139] server_id[12250]

is really good for debugging,

and this library works fine for me on linux
http://www.altlinux.com/index.php?module=sisyphus&package=setproctitle

- --
metze

Stefan Metzmacher <metze at samba.org> www.samba.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEEI9Am70gjA5TCD8RAkRpAJ9TcstFQg2St6caZk3aEbRe2KqDqACgxTgo
8LIUcCAFebMfLUiWBjtnT6w=
=1SH8
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list