Advertisement
LocutusOfBorg

Untitled

Sep 5th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. switch(fork()) {
  2. case 0:
  3. #ifndef DEBUG
  4. /* don't print on console if the ethtool cannot disable some offloads unless you are in debug mode */
  5. close(2);
  6. #endif
  7. execvp(param[0], param);
  8. safe_free_mem(param, &param_length, command);
  9. _exit(EINVALID);
  10. case -1:
  11. safe_free_mem(param, &param_length, command);
  12. default:
  13. safe_free_mem(param, &param_length, command);
  14. wait(&ret_val);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement