title: system command hanged in C program, but when I run the command on bash it is successfull
body: <p>I need to send the arp of a IP to get it's mac address which is configured on different machine. I am arping this ip from a C program by "system(arping -c 3 -i eth0 ) but I see that this is hanged in there.</p>
  
  <p>But if I run the same command from bash "arping -c 3 -i eth0 " it get executed successfully.</p>
  
  <p>I could not understand why system command hanged in this case while the command is successfully completed when run from bash.</p>
  
  <p>Thanks, </p>