当前位置: 首页 > wzjs >正文

wordpress 漏洞 下载seo排名策略

wordpress 漏洞 下载,seo排名策略,精准客户电话号码购买,广西建设学院官方网站一、 栈里面有:局部变量、形参、函数的返回地址 并发:多个任务同时运行 1.exit 库函数 退出状态,终止的进程会通知父进程,自己使如何终止的。如果是正常结束(终止),则由exit传…

一、
栈里面有:局部变量、形参、函数的返回地址
    并发:多个任务同时运行

1.exit     库函数
        退出状态,终止的进程会通知父进程,自己使如何终止的。如果是正常结束(终止),则由exit传入的参数。如果是异常终止,则有内核通知异常终止原因的状态。任何情况下,负进程都能使用wait,waitpid获得这个状态,以及资源的回收。
void exit(int status) 
exit(1);
        功能:让进程退出,并刷新缓存区
        参数:status:进程退出的状态
        返回值:缺省
EXIT_SUCCESS 0
EXIT_FAILURE 1

return  当该关键字出现在main函数中时候可以结束进程
如果在其他函数中则表示结束该函数。
exit -> 刷新缓存区 -> atexit注册的退出函数 -> _exit

2.进程空间的回收
    僵尸进程:进程执行结束但空间未被回收变成僵尸进程
    只能父进程回收子进程
pid_t wait(int *status)
    功能:该函数可以阻塞等待任意子进程退出,并回收该进程的状态,一般用于父进程回收子进程状态。
阻塞的原因:对方还没有结束

3.waitpid(-1,status,0) = wait(status)
函数原型:pid_t waitpid(pid_t pid, int *status, int options);
阻塞模式和非阻塞模式---WNOHANG

4.exec族
    exec 执行外部程序,代码段被新程序替换
whereis ls(查看有没有系统里面有没有ls)
1)int execl(const char *path, const char *arg, ...
                       /* (char  *) NULL */);
2)int execlp(const char *file, const char *arg, ...
                       /* (char  *) NULL */);
echo $PATH
3)int execv(const char *path, char *const argv[]);
4)int execvp(const char *file, char *const argv[]);

二、代码与例题
1.wait_status

#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <stdlib.h>int	main(int argc, char **argv)
{pid_t pid = fork();if(pid > 0){printf("father %d\n", getpid());int status;pid_t ret = wait(&status);if (WIFEXITED(status)){printf("son terminal normally, exit value %d\n", WEXITSTATUS(status));}else if (WIFSIGNALED(status)){printf("son termnial by signal, signal value %d\n", WTERMSIG(status));}printf("pid : %d ret : %d\n", pid, ret);}else if (0 == pid){int i = 10;while(i--){printf("son pid : %d\n", getpid());sleep(1);}exit(20);}else{perror("fork");return 1;}//system("pause");return 0;
}

2.waitpid

#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <stdlib.h>
int	main(int argc, char **argv)
{pid_t pid = fork();if(pid > 0){printf("father %d\n", getpid());int status;while(1){pid_t ret = waitpid(pid, &status, WNOHANG);if(ret == pid){if(WIFEXITED(status)){printf("child terminal normally, exit value %d\n ", WEXITSTATUS(status));}else if (WIFSIGNALED(status))  //异常结束{printf("child terminal by signal , signal value %d\n ", WTERMSIG(status));}printf("pid %d ret %d\n", pid, ret);break;}else if (0 == ret)  //还没结束{printf("回收失败,稍后再试\n");}else{printf("回收错误\n");return 1;}}}else if (0 == pid){int i = 10;while (i--){printf("pid:%d child\n", getpid());sleep(1);}exit(20);}else{perror("fork");return 1;}// system("pause");return 0;
}

3.exec族

#include <unistd.h>
#include <stdio.h>
int	main(int argc, char **argv)
{//execl("/usr/bin/firefox", "firefox","www.baidu.com",NULL);//ls -a -l//execl("/bin/ls", "ls","-a","-l",NULL);//execlp("firefox", "firefox","www.baidu.com",NULL);//execl("b.out", "./b.out",NULL);//execlp("./b.out", "b.out", NULL);char *args[] = {"ls","-l","-a","--color=auto",NULL};char *args1[] = {"./b.out",NULL};//execvp(args[0], args);//execv("/bin/ls", args);execv(args1[0], args1);return 0;
}


 

http://www.dtcms.com/wzjs/220600.html

相关文章:

  • 怎么做qq分享网站站长工具高清无吗
  • 民宿网站建设seo的推广技巧
  • 网站建设 客户需求网络营销策划书论文
  • 合优网房产房出租搜索引擎优化的核心本质
  • 大数据政府网站建设网络营销方案设计
  • 北京东城网站建设公司seo优化技术招聘
  • 找人做淘宝网站多少钱云盘搜索引擎入口
  • 百度网站做不做竞价推广运营
  • 免费做网站怎么盈利搜索引擎优化的方式有哪些
  • 泰安企业建站公司排行搜索引擎优化网站的网址
  • 做网站需要视频衔接怎么陕西疫情最新消息
  • 用asp.net做的网站有哪些友情链接只有链接
  • bootstrap做的导视网站玄幻小说百度风云榜
  • 黑猫会活动策划网站seo标题关键词优化
  • 国内ui网站有哪些郑州网络推广方案
  • 上饶市建设局网站百代seo资讯网
  • 网站推广入口百度百家官网入口
  • 安阳网站建设设计社群营销的十大步骤
  • 网站优化推广是什么关键词出价计算公式
  • wrb网站架构东莞seo托管
  • css3动画库网站html家乡网站设计
  • 电商模板网站免费免费网站收录网站推广
  • 做网站从何开始策划公司排行榜
  • 四川省建设岗位注册中心网站济源新站seo关键词排名推广
  • 县政府门户网站建设情况爱上链外链购买平台
  • 简述网站建设基本步骤百度小说排行榜2019
  • 河池网站推广网络搜索词排名
  • 南皮网站建设网络广告的形式
  • 深圳市政府网站官网网络营销广告名词解释
  • 做网站 附加信息营销网站建设规划