summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss/setup.c
Commit message (Collapse)AuthorAgeFilesLines
* Handle the case where we truss an SUGID program -- in particular, we needsef2000-01-101-1/+9
| | | | | | | | to wake up any processes waiting via PIOCWAIT on process exit, and truss needs to be more aware that a process may actually disappear while it's waiting. Reviewed by: Paul Saab <ps@yahoo-inc.com>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Calls one or more of malloc(), warn(), err(), syslog(), execlp() ordes1998-10-131-4/+4
| | | | | | | | | | | execvp() in the child branch of a vfork(). Changed to use fork() instead. Some of these (mv, find, apply, xargs) might benefit greatly from being rewritten to use vfork() properly. PR: Loosely related to bin/8252 Approved by: jkh and bde
* Sort Xrefs. Use err(3). Remove uneeded #include.charnier1998-01-051-11/+11
| | | | | | Correct usage: one of {-p pid, command} is required. Open output file when command line is fully analyzed: incorrect `truss -o f' command does not create an empty file anymore.
* Add some copyright and license terms, at Jordan's request. Note thatsef1997-12-201-1/+33
| | | | syscall.h just refers to another file for the copyright notice.
* Change the ioctls for procfs around a bit; in particular, whever possible,sef1997-12-131-13/+9
| | | | | | | | | | | | | | change from ioctl(fd, PIOC<foo>, &i); to ioctl(fd, PIOC<foo>, i); This is going from the _IOW to _IO ioctl macro. The kernel, procctl, and truss must be in synch for it all to work (not doing so will get errors about inappropriate ioctl's, fortunately). Hopefully I didn't forget anything :).
* Use the new PF_LINGER flag -- when this is set in a process' proc structure,sef1997-12-071-1/+20
| | | | | | | | | said process will not have its event mask cleared (and be restarted) on the last close of a procfs/mem file for that pid. This reduces the chance that a truss-monitored process will be left hanging with these bits set and nobody looking for it. This is the least-tested change of all of these, I'm afraid.
* err(3) already includes strerror(errno) and a trailing \npeter1997-12-061-6/+6
|
* Set the close-on-exec flag in the child; otherwise, it eats up asef1997-12-061-1/+2
| | | | file descriptor that it shouldn't.
* Truss program. Requires procfs.sef1997-12-061-0/+125
OpenPOWER on IntegriCloud