Linux Shutdown in using the POSIX getrusage() function.
I have developed a userspace program similar to FTP protocol
that transfers files between a client and server in native C using
the POSIX userspace APIs.
I make use of the getrusage() function to profile my program in
source code level.
The server program is correctly running. However, the client program causes the system
to shut down; but when I remove the getrusage() function from the source code
in client side, everything is working well without any shutdown.
Has everybody any ideas of what is happening?