MCPcopy Create free account
hub / github.com/coreutils/coreutils / delete_proc

Function delete_proc

src/sort.c:806–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804 Otherwise, return false. */
805
806static bool
807delete_proc (pid_t pid)
808{
809 struct tempnode test;
810
811 test.pid = pid;
812 struct tempnode *node = hash_remove (proctab, &test);
813 if (! node)
814 return false;
815 node->state = REAPED;
816 return true;
817}
818
819/* Remove PID from the process table, and wait for it to exit if it
820 hasn't already. */

Callers 2

reapFunction · 0.85
wait_procFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected