The os.write() call could be replaced by:
def write_data(fd: int, data: bytes) -> None:
size = len(data)
written = 0
while written < size:
written_chunck = os.write(fd, data[written:])
if written_chunck == 0:
raise OSError(errno.ECANCELED, os.strerror(errno.ECANCELED))
written += written_chunck
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2109979
Title:
max size of user coredump is 0x7ffff000
To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/2109979/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs