Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

nanosleep bad system call

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
Daffern
Posts: 2
Joined: 2022-05-06 16:12

nanosleep bad system call

#1 Post by Daffern »

Hi!

I'm trying to create a program compiling with gcc. However when i run it, the program exists and "Bad system call" is printed into the terminal. This happens when it runs either usleep() or nanosleep() system calls.

I'm doing this on OpenMediaVault 6 (Debian 11). Anyone have any idea whats wrong?


reinob
Posts: 1198
Joined: 2014-06-30 11:42
Has thanked: 99 times
Been thanked: 47 times

Re: nanosleep bad system call

#3 Post by reinob »

does openmediavault have a compiler at all?
or are you cross-compiling?
if cross-compiling, check at least that you're not mixing 32-bit and 64-bit, etc.

Daffern
Posts: 2
Joined: 2022-05-06 16:12

Re: nanosleep bad system call

#4 Post by Daffern »

Thanks for the tip, i tried updating gcc and checking the makefile.Turns out it was a problem with seccomp rules that didnt work, removed them and its working :D

Post Reply