I am sure you have probably done this already but figured I'd post here as well for anyone wondering
Fedora seemed to work out of the box but I could have other utilities installed already from dev work...however, CentOS 7 I had to add -std=gnu99 to CFLAGS in the makefile
Expected behavior
Works on Fedora 27 & CentOS 7.4
Actual behavior
Work on both
Steps to reproduce the behavior
Fedora 27
[18:01:03]ckozler@bastion:~/code/ProcDump-for-Linux > sudo bin/procdump -n 3 -s 3 -C 50 -p 19025
ProcDump v1.0 - Sysinternals process dump utility
Copyright (C) 2017 Microsoft Corporation. All rights reserved. Licensed under ther MIT license.
Mark Russinovich, Mario Hewardt, John Salem, Javid Habibi
Monitors a process and writes a dump file when the process exceeds the
specified criteria.
Process: cat (19025)
CPU Threshold: >=50
Commit Threshold: n/a
Threshold Seconds: 3
Number of Dumps: 3
Press Ctrl-C to end monitoring without terminating the process.
[18:01:18 - INFO]: CPU: 96%
[18:01:18 - INFO]: Core dump 1 generated: cat_cpu_2017-12-06_18:01:18.19025
[18:01:22 - INFO]: CPU: 96%
[18:01:22 - INFO]: Core dump 2 generated: cat_cpu_2017-12-06_18:01:22.19025
[18:01:26 - INFO]: CPU: 96%
[18:01:26 - INFO]: Core dump 3 generated: cat_cpu_2017-12-06_18:01:26.19025
[18:01:26]ckozler@bastion:~/code/ProcDump-for-Linux > lsb_release -r
Release: 27
CentOS 7
[root@ckozler ProcDump-for-Linux]# bin/procdump -n 3 -s 3 -C 50 -p 16354
ProcDump v1.0 - Sysinternals process dump utility
Copyright (C) 2017 Microsoft Corporation. All rights reserved. Licensed under ther MIT license.
Mark Russinovich, Mario Hewardt, John Salem, Javid Habibi
Monitors a process and writes a dump file when the process exceeds the
specified criteria.
Process: cat (16354)
CPU Threshold: >=50
Commit Threshold: n/a
Threshold Seconds: 3
Number of Dumps: 3
Press Ctrl-C to end monitoring without terminating the process.
[23:25:02 - INFO]: CPU: 96%
[23:25:03 - INFO]: Core dump 1 generated: cat_cpu_2017-12-06_23:25:02.16354
[23:25:07 - INFO]: CPU: 96%
[23:25:07 - INFO]: Core dump 2 generated: cat_cpu_2017-12-06_23:25:07.16354
[23:25:11 - INFO]: CPU: 96%
[23:25:11 - INFO]: Core dump 3 generated: cat_cpu_2017-12-06_23:25:11.16354
[root@ckozler ProcDump-for-Linux]# cat Makefile | grep ^CFLAGS
CFLAGS=-I ./include -pthread -std=gnu99
System information (e.g., distro, kernel version, etc.)