ramb0tn1k
ramb0tn1k

Reputation: 151

Process file descriptors and SIGKILL signal behavior

I've little question about file descriptors and signals on Linux.

are all file descriptors close when process terminated by SIGKILL signal?

Upvotes: 1

Views: 1028

Answers (1)

zwol
zwol

Reputation: 140445

Yes. The kernel closes all still-open file descriptors when any process is terminated for any reason.

Upvotes: 4

Related Questions