From a994e9a59023814fa4707b7b6d6858d96d3f499f Mon Sep 17 00:00:00 2001 From: deajan Date: Fri, 19 Aug 2016 00:13:27 +0200 Subject: [PATCH] Added dead process test program --- dev/uninterruptible.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 dev/uninterruptible.c diff --git a/dev/uninterruptible.c b/dev/uninterruptible.c new file mode 100644 index 0000000..69aa15b --- /dev/null +++ b/dev/uninterruptible.c @@ -0,0 +1,9 @@ +# Create a process in uninterruptible sleep state that forks a child process. +# Killing child process will change childs's state to zombie. +# Useful for WaitforTaskCompletion tests + +int main() { + vfork(); + sleep(180); + return 0; +}