Y
Y
yorigiho2020-05-04 10:42:59
FreeBSD
yorigiho, 2020-05-04 10:42:59

What does error code 10 mean?

Hello!
This is happening on a 64-bit FreeBSD server.
One particular binary, compiled purely from C source on a BSD server, in some cases aborts without any output and returns code 10, according to the shell message. This does not match the exit code I wrote in the C program.
What does error code 10 mean? I'm running it remotely on a BSD server as a shell command, not inside a bash script. C program compiled using gcc

www.bigbootytube.xxx

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
res2001, 2020-05-04
@res2001

See here: https://github.com/freebsd/freebsd/blob/master/sys...
In a program, you can use the strerror() function to return a text message for system errors.
Always handle the return of system functions to avoid such situations.

C
CityCat4, 2020-05-04
@CityCat4

If this is your program - compile with debug and run in the debugger

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question