mirror of
https://github.com/restic/restic.git
synced 2026-08-09 15:13:18 +00:00
This function casts its argument to int32 before passing it to the system call, so that big-endian CPUs read the lower rather than the upper 32 bits of the pid. This also gets rid of the last import of "unsafe" in the Unix build. I changed syscall to x/sys/unix while I was at it, to remove one more import line. The constants and types there are aliases for their syscall counterparts.
1.4 KiB
1.4 KiB