summaryrefslogtreecommitdiffstats
path: root/Process.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-27 15:12:15 +0100
committerBenBE <BenBE@geshi.org>2021-01-30 14:21:26 +0100
commit7bfa466abe65ff14d530ae16c344cdc06d5145ea (patch)
tree15a6fb8c26887bd8f5b13ceda4d2460f4c5409f0 /Process.h
parent1014e897a7faa9556aa0ce54237c3d6c8163d023 (diff)
Linux: silence UBSAN implicit conversions
pgrp and session might be -1 linux/LinuxProcessList.c:312:20: runtime error: implicit conversion from type 'unsigned long' of value 18446744073709551615 (64-bit, unsigned) to type 'unsigned int' changed the value to 4294967295 (32-bit, unsigned) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior linux/LinuxProcessList.c:312:20 in linux/LinuxProcessList.c:314:23: runtime error: implicit conversion from type 'unsigned long' of value 18446744073709551615 (64-bit, unsigned) to type 'unsigned int' changed the value to 4294967295 (32-bit, unsigned) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior linux/LinuxProcessList.c:314:23 in
Diffstat (limited to 'Process.h')
-rw-r--r--Process.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Process.h b/Process.h
index fce5017d..e9c42622 100644
--- a/Process.h
+++ b/Process.h
@@ -76,10 +76,10 @@ typedef struct Process_ {
pid_t tgid;
/* Process group identifier */
- unsigned int pgrp;
+ int pgrp;
/* Session identifier */
- unsigned int session;
+ int session;
/* Foreground group identifier of the controlling terminal */
int tpgid;

© 2014-2024 Faster IT GmbH | imprint | privacy policy