]> granicus.if.org Git - strace/blob - README-svr4
Add pollhack
[strace] / README-svr4
1 Even though SVR4 has truss, you may prefer using strace for a number
2 of reasons.  Not the least of which are portability and source code.
3
4 The main event loop is awkward on systems for which procfs isn't
5 pollable.  I think a pollable procfs is a Solaris invention so most SVR4
6 systems have this weakness.  On Solaris, strace runs as a single
7 controlling process.  This is a big improvement if you are debugging a
8 lot of processes at once.
9
10 There is no thread support but it wouldn't be very difficult to add it.
11
12 There is currently no configure-support yet for UnixWare system. To compile
13 on UnixWare 2.1 you need to add the following to config.h yourself:
14
15     #define SVR4_MP 1
16     #define UNIXWARE 2
17     #define HAVE_POLLABLE_PROCFS 1
18
19 On UnixWare using the -f option to follow forked children sometimes shows
20 many "unfinished" system calls as strace bounces between each runnable child.
21 A crude workaround for this is available by adding
22
23     #define POLL_HACK 1
24
25 to the config.h file.  This forces strace to check whether the last process
26 has finished a system call before polling other processes for events.
27
28 Wichert Akkerman <wakkerma@debian.org>
29