diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-02 15:02:46 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-02 15:02:46 +0000 |
commit | 9aad2c0ee9bd9366e680b5b7aafa650d1fd2663d (patch) | |
tree | 97764fd874f0dd9d9ad89110891a372b91770780 /mg.c | |
parent | 96c7109f147464908a4393d36c8da8315dbbafe4 (diff) | |
download | perl-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |