Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: support pid > 65535 (remove assert, use lower 16 bits)
Co-authored-by: Cursor <cursoragent@cursor.com>
  • Loading branch information
root and cursoragent committed Feb 14, 2026
commit 16839e7a88253ff36bca78b03aea17c458699fa7
3 changes: 1 addition & 2 deletions common/pid.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ npid_t PID;
void init_common_PID (void) {
if (!PID.pid) {
int p = getpid ();
assert (!(p & 0xffff0000));
PID.pid = p;
PID.pid = (unsigned short) (p & 0xffff);
}
if (!PID.utime) {
PID.utime = time (0);
Expand Down