What are the possible return values of kill() system call?



What are the possible return values of kill() system call?..

Answer / Sachin Sahay Gautam

The kill() system call can return several values, depending on whether the process is running and if it could be terminated. If the process does not exist or if it cannot be found, it returns -1. Successful termination of a process returns 0. Other possible return values include EACCES (access denied), EPERM (operation not permitted), ESRCH (no such process), and ETXTBSY (text file busy).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix System Calls Interview Questions

The very first process created by the Kernal in UNIX is

7 Answers  


Explain the unmount system calls?

1 Answers  


c program to implement the unix or linux command to implement ls -l >output.txt

5 Answers   Arihant,


What command is used to execute system calls from exe?

3 Answers   Axis Technologies,


What are the Unix system calls for I/O?

4 Answers  


Explain c program to implement the unix or linux command to implement ls -l >output.txt?

1 Answers  


what is diff between command and utility in unix

3 Answers  


What is the first process created by the kernel in unix?

1 Answers  


Describe the mount and unmount system calls?

2 Answers  


Need a Code snippet about how sharing is happening between Parent and Child threads in OS?

0 Answers  


Name the command which is used to execute system calls from exe?

1 Answers  


How to protect a process from others to kill?

1 Answers  


Categories