具体报错:ntpdate[111]: poll(): nfound = 0, error: No such file or directory
我在主程序中执行一次system(ntpdate cn.pool.ntp.org);
主程序之后又分了3个线程,其中一个线程中又执行system(ntpdate cn.pool.ntp.org),执行过程中报错:ntpdate[111]: poll(): nfound = 0, error: No such file or directory,并且会卡在这条命令上,没法继续执行下面的程序。
但是如果仅在主程序中执行或者仅在线程中执行ntpdate命令则不会报错,程序运行正常,求大神解答,万分感谢!