Skip to content

Commit

Permalink
test/test-setproctitle: remove check for setproctitle_init on BSD sys…
Browse files Browse the repository at this point in the history
…tems

Signed-off-by: Colin Ian King <[email protected]>
  • Loading branch information
ColinIanKing committed Feb 19, 2025
1 parent e3dc713 commit bb46d2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test-setproctitle.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@

int main(int argc, char *argv[], char *envp[])
{
#if !(defined(__APPLE__) || \
defined(__DragonFly__) || \
defined(__FreeBSD__) || \
defined(__NetBSD__) || \
defined(__OpenBSD__))
setproctitle_init(argc, argv, envp);
#endif
setproctitle("-%s", "this is a test");
return 0;
}

0 comments on commit bb46d2a

Please sign in to comment.