Skip to content
Advertisement

/dev/mem and /dev/kmem not exists?

I would appreciate if some one can explain me why the two files do not exist? How Android kernel’s virtual memory space and physical space be like without have the 2 files? Edit: I am having Android 2.3.7 (Cyanogen mod), the 2 files do not exist: Edit2: I have checked the Samsung Galaxy S3 running ICS, the 2 files exist

Detect death of parent process

How can I detect parent process death in Linux OS? If in parent process called fork(), that create child process. In the parent process I can use system call wait() for waiting terminated child process, and getting its status. But, I can’t find info about how child process can detect parent process’ death? Answer You can get the parent process

How to check if sed has changed a file

I am trying to find a clever way to figure out if the file passed to sed has been altered successfully or not. Basically, I want to know if the file has been changed or not without having to look at the file modification date. The reason why I need this is because I need to do some extra stuff

Distinguish forwarding traffic and locally originated traffic in Linux network driver

Is there any information in the struct skbuff to distinguish between the forwarding traffic (bridge forwarding and ip forwarding) and locally originated traffic? We want to treat these two kinds of traffic differently in the network driver because the forwarding traffic do not require cache invalidation on the whole packet size. Any suggestions are appreciated. Thank you very much! Answer

Nagios – Connection refused & Socket timeout

I need to monitor windows services(like CPU load, memory usage etc.), so I have installed Nagios monitoring tool. The installation is complete and ‘check_nt’ plugin is also installed. Upto this no error is there, but while executing scripts with agent NSClient++ ‘Connection refused by host’ error still persists. I have verified that nagios is working correctly, as under. M new

Trying to launch an external editor from within a Go program

I am trying to figure out how to launch an external editor from within a Go program, wait for the user to close the editor, and then continue execution of the program. Based on this SO answer, I currently have this code: When I run the program, I get this: I have also tried using exec.Run() instead of exec.Start(), but

Advertisement