summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-08-02 15:02:46 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-02 15:02:46 +0000
commit9aad2c0ee9bd9366e680b5b7aafa650d1fd2663d (patch)
tree97764fd874f0dd9d9ad89110891a372b91770780 /mg.c
parent96c7109f147464908a4393d36c8da8315dbbafe4 (diff)
downloadperl-9aad2c0ee9bd9366e680b5b7aafa650d1fd2663d.tar.gz
The new setproctitle() feature is available only in
bleeding edge FreeBSD. From Paul Saab. p4raw-id: //depot/perl@6492
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mg.c b/mg.c
index 3cf8f59a6a..884e0faec2 100644
--- a/mg.c
+++ b/mg.c
@@ -2005,13 +2005,13 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
* the setproctitle() routine to manipulate that. */
{
s = SvPV(sv, len);
-# if __FreeBSD_version >= 400000
- /* The - removes the "perl: " prefix,
+# if __FreeBSD_version >= 410001
+ /* The leading "-" removes the "perl: " prefix,
* but not the "(perl) suffix from the ps(1)
* output, because that's what ps(1) shows if the
* argv[] is modified. */
setproctitle("-%s", s, len + 1);
-# else /* old FreeBSDs, NetBSD, OpenBSD */
+# else /* old FreeBSDs, NetBSD, OpenBSD, anyBSD */
/* This doesn't really work if you assume that
* $0 = 'foobar'; will wipe out 'perl' from the $0
* because in ps(1) output the result will be like