{"action":"opened","issue":{"url":"https://api.github.com/repos/fsmk/CS-VTU-Lab-Manual/issues/131","labels_url":"https://api.github.com/repos/fsmk/CS-VTU-Lab-Manual/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/fsmk/CS-VTU-Lab-Manual/issues/131/comments","events_url":"https://api.github.com/repos/fsmk/CS-VTU-Lab-Manual/issues/131/events","html_url":"https://github.com/fsmk/CS-VTU-Lab-Manual/issues/131","id":88188154,"number":131,"title":"Error in one of the programs","user":{"login":"TheGermanGuy","id":10371003,"avatar_url":"https://avatars.githubusercontent.com/u/10371003?v=3","gravatar_id":"","url":"https://api.github.com/users/TheGermanGuy","html_url":"https://github.com/TheGermanGuy","followers_url":"https://api.github.com/users/TheGermanGuy/followers","following_url":"https://api.github.com/users/TheGermanGuy/following{/other_user}","gists_url":"https://api.github.com/users/TheGermanGuy/gists{/gist_id}","starred_url":"https://api.github.com/users/TheGermanGuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheGermanGuy/subscriptions","organizations_url":"https://api.github.com/users/TheGermanGuy/orgs","repos_url":"https://api.github.com/users/TheGermanGuy/repos","events_url":"https://api.github.com/users/TheGermanGuy/events{/privacy}","received_events_url":"https://api.github.com/users/TheGermanGuy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-14T13:55:48Z","updated_at":"2015-06-14T13:55:48Z","closed_at":null,"body":"08_Zombie_process\r\n\r\n\r\n\r\n#include<stdio.h>\r\n#include<stdlib.h>\r\n#include<unistd.h>\r\nint main()\r\n{\r\n        int pid;\r\n        if((pid=fork())<0)\r\n                printf(\"fork error\\n\");\r\n        else if(pid==0)\r\n        {\r\n                if((pid=fork())<0)\r\n                        printf(\"fork error\\n\");\r\n                else if(pid<0)       //should be replaced with \"else if(pid>0)\" \r\n                        _exit(0);\r\n                sleep(2);\r\n                printf(\"second child,parent pid:%d\\n\",getppid());\r\n                _exit(0);\r\n        }\r\n        _exit(0);\r\n}"}}