about summary refs log tree commit diff
path: root/extrace.c
Commit message (Collapse)AuthorAgeFilesLines
* extrace: detect errors when -d is used HEAD masterLeah Neukirchen2022-10-251-0/+4
|
* sigchld: only quit when we reaped our own childLeah Neukirchen2022-04-161-5/+10
| | | | | Previously, the signal handler would also quit when it was triggered by backgrounding the child.
* sig_atomic_t should be used with volatileLeah Neukirchen2022-01-271-1/+1
|
* quit when parent specified in -p exitsLeah Neukirchen2022-01-061-0/+3
|
* fix bug where exec() calls would create duplicate entries in pid_dbLeah Neukirchen2022-01-021-1/+10
| | | | Also print execution times for processes that exec'd when -t is used.
* fix -p flagLeah Neukirchen2022-01-021-9/+11
| | | | | Regression from c0e8a5424d, also fix error reporting of processes we don't care about.
* extrace: skip parent lookup for pid 1Alyssa Ross2021-06-151-0/+3
| | | | | | | | | I was getting a lot of errors that looked like extrace: process vanished before we found its parent: pid 1: redirfd Which are easily avoidable. Message-Id: <20210615120801.121874-1-hi@alyssa.is>
* extrace: sync help message and code comments.Érico Nogueira2021-06-091-2/+2
| | | | Closes: #8 [via git-merge-pr]
* extrace: add option to suppress runtime errors.Érico Nogueira2021-06-091-8/+22
| | | | | | | Errors like "process vanished ..." can fill the screen when attempting to run a certain process under extrace, and redirecting all of stderr to /dev/null will hide that process's output. Therefore, we need an option in extrace to hide them.
* update copyright yearLeah Neukirchen2019-02-081-1/+1
|
* extrace: ignore PROC_EVENT_NONE eventsLeah Neukirchen2018-10-201-0/+3
| | | | Closes #6.
* extrace: use snprintf instead of strncpy to silence misleading ↵Leah Neukirchen2018-09-171-2/+2
| | | | -Wstringop-truncation
* extract: verify pid existsLeah Neukirchen2018-09-171-1/+24
|
* pid_depth: parse /proc/$PID/stat without using brittle fscanfLeah Neukirchen2018-06-191-7/+22
|
* add -u to print owner of processLeah Neukirchen2018-06-191-2/+18
|
* LICENSE, extrace.c: bump copyright yearsLeah Neukirchen2018-03-231-1/+1
|
* extrace: print errors when we lost dataLeah Neukirchen2018-02-111-2/+13
| | | | Proposed by "Chris West (Faux)" <git@goeswhere.com>.
* extrace: read cmdline first, it is the core informationLeah Neukirchen2018-02-081-18/+18
|
* extrace: use openat() for speedupChris West (Faux)2018-02-081-17/+28
| | | | | | | This reduces the timeframe where the inherently racy access to /proc is done, and removes some unnecessary snprintf. Closes: #2 [via git-merge-pr]
* mention -t in usageLeah Neukirchen2018-01-311-1/+1
|
* make non-standard signals optionalNicolas Braud-Santoni2018-01-251-10/+22
| | | | Closes: #1 [via git-merge-pr]
* remove own SIGINT handler, the default handler works well enoughLeah Neukirchen2017-12-211-9/+0
|
* detect out of order messages, report themLeah Neukirchen2017-11-131-1/+14
|
* pid_depth: use pid_db to avoid needless recursionLeah Neukirchen2017-10-311-5/+14
|
* styleLeah Neukirchen2017-08-311-10/+10
|
* add unit to timestampLeah Neukirchen2017-08-201-2/+2
|
* cleanupLeah Neukirchen2017-08-201-9/+8
|
* use wait macrosLeah Neukirchen2017-08-201-3/+3
|
* decode signal/status properly, decode signal namesLeah Neukirchen2017-08-201-18/+57
|
* extrace.c: KNFLeah Neukirchen2017-07-141-328/+339
|
* add -t for tracing process exit and durationLeah Neukirchen2017-07-141-3/+69
|
* LeahizeLeah Neukirchen2017-04-251-1/+1
|
* extrace: fix usageChristian Neukirchen2016-09-281-1/+1
|
* add -e to output environment tooChristian Neukirchen2016-06-131-3/+33
|
* put pid in variableChristian Neukirchen2016-06-131-8/+6
|
* check fscanf return valueChristian Neukirchen2016-06-131-1/+2
|
* copyright yearChristian Neukirchen2016-06-131-1/+1
|
* more warningsChristian Neukirchen2016-06-131-1/+3
|
* quote cwd tooChristian Neukirchen2016-06-131-2/+4
|
* print arguments shell quotedChristian Neukirchen2016-06-131-13/+49
|
* fix outputChristian Neukirchen2016-06-131-13/+8
|
* axe -w and make it defaultChristian Neukirchen2016-06-131-13/+6
| | | | Use cut(1) if you want to limit the line length.
* whitespace fixChristian Neukirchen2016-06-131-2/+2
|
* add -d to print cwd of processChristian Neukirchen2016-01-071-6/+20
|
* extrace: increase CMDLINE_MAX. v0.1Christian Neukirchen2015-04-021-1/+1
|
* add -l and -qChristian Neukirchen2014-03-131-8/+32
|
* convert newlines in cmdline to spacesChristian Neukirchen2014-03-111-2/+2
|
* make -o imply -wChristian Neukirchen2014-03-111-3/+3
|
* add option to run command directly and log to a fileChristian Neukirchen2014-03-111-24/+75
|
* initial commit of extraceChristian Neukirchen2014-03-111-0/+254