posix_getpid 是linux下的函数,在windows是没有的(not implemented),在windows下可以使用get_current_user()。 转载于:https://www.cnblogs.com/caoql/p/8708375.html