Project

General

Profile

Actions

Bug #3319

open

setproctitle() calls can change effect of later setproctitle() calls

Added by tonyc about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
06/30/2022
Due date:
% Done:

0%

Estimated time:

Description

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 :/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) 19894.c Code demonstrating issue tonyc, 06/29/2022 06:05 PM

No data to display

Actions

Also available in: Atom PDF