According to this and that, Perl’s system()
returns exit values multiplied by 256. So it’s actually exiting with 1
. It seems this happens in C too.
More Related Contents:
- Creating a daemon in Linux
- How to execute a shell script from C in Linux?
- fd leak, custom Shell
- Implementation of multiple pipes in C
- Pipes, dup2 and exec()
- argv: Sanitizing wildcards
- What are the flags and macros in a Makefile? [closed]
- How to write a signal handler to catch SIGSEGV?
- Where is the itoa function in Linux?
- Where is PATH_MAX defined in Linux?
- How to set the name of a thread in Linux pthreads?
- “undefined reference to `pow'” even with math.h and the library link -lm [duplicate]
- Build .so file from .c file using gcc command line
- How Can I debug a C program on Linux?
- How to use POSIX semaphores on forked processes in C?
- Pipe buffer size is 4k or 64k?
- How to wait for exit of non-children processes
- Compiler using local variables without adjusting RSP
- How to access mmaped /dev/mem without crashing the Linux kernel?
- How to solve “ptrace operation not permitted” when trying to attach GDB to a process?
- How can a shared library (.so) call a function that is implemented in its loader code?
- Memory usage of current process in C
- How can I include a needed C library using GCC?
- How to set up a cron job to run an executable every hour?
- What can cause a “Resource temporarily unavailable” on sock send() command
- Returning struct containing array
- How to read terminal’s input buffer immediately after keypress
- Efficient way to find task_struct by pid
- What is the difference between AF_INET and PF_INET in socket programming?
- Can you bind() and connect() both ends of a UDP connection