diff options
Diffstat (limited to 'src/attach.c')
-rw-r--r-- | src/attach.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/attach.c b/src/attach.c index 7aad391..1846288 100644 --- a/src/attach.c +++ b/src/attach.c @@ -37,13 +37,9 @@ char read_status(pid_t pid) if (!h_status) return 0; read_file(str, 4096, h_status); - regex_t regex; int err; regmatch_t pmatch[2]; - if (regcomp(®ex, "State:\\W+([A-Za-z])", REG_EXTENDED) != 0) - SYS_ERR("regex compilation error"); err = regexec(®ex, str->data, 2, pmatch, 0); - regfree(®ex); if (err) { DEBUG("failed to find regex match in /proc/%d/status file\n", pid); } else { |