call_usermodehelper()函数

 1 static int umh_test( void )
 2 {
 3   char *argv[] = { "/usr/bin/logger", "help!", NULL };
 4   static char *[] = {
 5         "HOME=/",
 6         "TERM=linux",
 7         "PATH=/sbin:/bin:/usr/sbin:/usr/bin", NULL };
 8 
 9   return call_usermodehelper( argv[0], argv, envp, UMH_WAIT_PROC );
10 }

 

posted on 2012-12-06 11:44  小风儿_xf  阅读(353)  评论(0编辑  收藏  举报

导航