What is command statement?
No Answer is Posted For this Question
Be the First to Post Answer
what is the command to find out which shell you are running?
How to rename files and folders?
Enumerate some of the most commonly used network commands in unix?
What is “chmod” command?
If JFS file system is 100% full how we can increase the file system ?
What is the command to find hidden files in the current directory?
What does find command return in unix?
What is the search command in unix?
distinguish between user mode and kernel mode?
how to find the 51th record of a file containing 100 records in unix.
What is $0 bash?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include<stdlib.h> # include <stdio.h> int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output: