]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
afs: Write 'afs' to argv[0].
authorAndre Noll <maan@systemlinux.org>
Sun, 11 Sep 2011 02:21:40 +0000 (04:21 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 13 Oct 2011 08:48:12 +0000 (10:48 +0200)
This allows to distinguish the afs process from the main server
process by looking at the ps output. Although there are less hacky
ways to achieve this (prctl(PR_SET_NAME, ...), setproctitle()), the
argv approach has the advantage of working on all supported operating
systems except FreeBSD. We have been doing the argv mangling for a
long time now in the command handlers and it has never caused any
problems, so it should be safe.


No differences found