Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
debugging interrupted system calls on I/Q
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5200

PostPosted: Fri Sep 07, 2018 9:09 pm    Post subject: debugging interrupted system calls on I/Q Reply with quote

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
ProjectFootball
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum