[DragonFlyBSD - Bug #3319] (Closed) setproctitle() calls can change effect of later setproctitle() calls

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Fri Mar 3 18:07:11 PST 2023


Issue #3319 has been updated by swildner.

Status changed from New to Closed

Turns out that a format beginning with '-' stopped working properly after the 10th call to setproctitle(). DragonFly switches to a faster way after 10 calls and that didn't handle the '-' properly.

Fixed in https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b866b1dac9e41035fffd5f4cec3b0a24a95916b6


----------------------------------------
Bug #3319: setproctitle() calls can change effect of later setproctitle() calls
http://bugs.dragonflybsd.org/issues/3319#change-14512

* Author: tonyc
* Status: Closed
* Priority: Normal
* Target version: 6.4
* Start date: 2022-06-30
----------------------------------------
The final setproctitle() call in the attached code results in different outputs from ps depending on the whether the earlier setproctitle() calls are present.

$ cc 19894.c && ./a.out 
x (a.out)
$ cc -DMANY 19894.c && ./a.out 
a.out: -x (a.out)
$ uname -a
DragonFly  6.2-RELEASE DragonFly v6.2.2-RELEASE #2: Thu Jun  9 22:53:25 EDT 2022     root at www.shiningsilence.com:/usr/obj/home/justin/release/6_2/sys/X86_64_GENERIC  x86_64

This came up from new perl tests failing on DragonflyBSD.

---Files--------------------------------
19894.c (667 Bytes)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account


More information about the Bugs mailing list