DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5941
|
Posted: Fri Sep 07, 2018 9:09 pm Post subject: debugging interrupted system calls on I/Q |
|
|
Greetings,
I have a small env using and modified version of kernel 4.14.2 with minimal and funky config, libc is musl 1.1.18 and busybox-1.22.2
within it, I have binary file (written in C) which detects if there is a cdrom in the system with a cd in it, if there is, it iterates over all partitions on the cdrom and uses the busybox's losetup to attach the offset to /dev/loop node.
after that I'm opening that loop node for read and try to read the start of the partition.
that always ends in failure due to interrupted system calls.
if I change the code, I can get these errors when calling llseek cmd.
any idea how to debug such issue? _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|