Damien Goutte-Gattat
dd15b4a138
Fix man page header.
Use correct arguments to the .TH command.
1 year ago
Damien Goutte-Gattat
bf01f57d18
Update project location.
2 years ago
Damien Goutte-Gattat
2460c718f2
Merge branch 'develop'
8 years ago
Damien Goutte-Gattat
f447871359
Update docs
8 years ago
Damien Goutte-Gattat
1ee54ee3ef
Fix kevent flags
8 years ago
Damien Goutte-Gattat
11726b6f9f
Fix compile errors on BSD
8 years ago
Damien Goutte-Gattat
e5bccb426a
Merge branch 'develop'
8 years ago
Damien Goutte-Gattat
d4be35630d
Update docs
8 years ago
Damien Goutte-Gattat
a9d3607936
Bump version number to 0.3.0
8 years ago
Damien Goutte-Gattat
3459884247
Merge branch 'feature/kevent' into develop
8 years ago
Damien Goutte-Gattat
386fc420f8
Regroup struct definitions on top
8 years ago
Damien Goutte-Gattat
0cbd3d7b89
Do not filter twice
If Linux Socket Filtering is available, don't do in userspace
what we already asked the kernel to do for us.
8 years ago
Damien Goutte-Gattat
eab71a01ac
Reorganize the code to build the filter
8 years ago
Damien Goutte-Gattat
797252d80f
Do not store filter steps in dynamic memory
Linux Socket Filtering does not allow a filter to comprise more
than 256 steps, so we won't allow to wait for more than 251
processes (we need 5 steps for the base filter).
8 years ago
Damien Goutte-Gattat
7d5189fa94
Avoid hardcoded offsets
Use Netlink macros and offsetof to get the offset of
interesting data inside a Netlink packet.
8 years ago
Damien Goutte-Gattat
936cb457fa
Filter out unwanted proc events
Use Linux Socket Filtering to let the kernel filter out the events
we are not interested in.
8 years ago
Damien Goutte-Gattat
2c77c61c17
Add basic support for kevent
8 years ago
Damien Goutte-Gattat
ef142b81bc
Add dummy function for Kevent support
8 years ago
Damien Goutte-Gattat
ca53be2414
Handle interrupted send(2) call
8 years ago
Damien Goutte-Gattat
d9dbe93719
Use WEXITSTATUS to retrieve the termination status
Thanks to "neologix" from linuxfr.org.
8 years ago
Damien Goutte-Gattat
d496639b00
Ensure proper Netlink initialization
Make sure the netlink message is properly zeroed and that the
needed members are filled in.
Thanks to "neologix" from linuxfr.org.
8 years ago
Damien Goutte-Gattat
749183d470
Merge branch 'develop'
8 years ago
Damien Goutte-Gattat
d91fee565c
Update NEWS file
8 years ago
Damien Goutte-Gattat
8c722c7b8c
Bump version number to 0.2.1
8 years ago
Damien Goutte-Gattat
1162c581ac
Add man page
8 years ago
Damien Goutte-Gattat
a54841cfa0
Update help message
8 years ago
Damien Goutte-Gattat
173840f199
Add the -t, --timeout option
8 years ago
Damien Goutte-Gattat
9a8d746de5
Use nanosleep(2) instead of sleep(3)
The nanosleep(2) system call can be safely mixed with alarm(2),
according to POSIX and contrary to sleep(3).
8 years ago
Damien Goutte-Gattat
aeaec8d36f
Remove unused wait4pid function
8 years ago
Damien Goutte-Gattat
6afba982ad
Merge branch 'develop'
8 years ago
Damien Goutte-Gattat
72ee68d6b8
Add NEWS file
8 years ago
Damien Goutte-Gattat
62f6ee102a
Bump version number to 0.2.0
8 years ago
Damien Goutte-Gattat
dfa7537750
Update configure.ac script
8 years ago
Damien Goutte-Gattat
2a2a4fb5ec
Update README
8 years ago
Damien Goutte-Gattat
f4b527fe0d
Replace /proc-based mode by a kill(2) method
8 years ago
Damien Goutte-Gattat
0f2765064c
Use xmalloc in wait4all (/proc mode)
8 years ago
Damien Goutte-Gattat
486b4371fc
Verify initial existence of target processes
In Netlink mode, if a target process does not exist, we end up
waiting indefinitely for it. To avoid that, try sending a nul
signal to the target process(es) before actually waiting for
Netlink proc events.
8 years ago
Damien Goutte-Gattat
606ac8ed9c
Include wait4pid.h header
8 years ago
Damien Goutte-Gattat
f039566360
Die on memory allocation error
8 years ago
Damien Goutte-Gattat
13bf203e7a
Update help message
8 years ago
Damien Goutte-Gattat
9a363b2c0c
Avoid memory leak in wait4all (/proc mode)
8 years ago
Damien Goutte-Gattat
6da91e34f3
Add do_recv helper function
This function takes care of recalling recv if it fails because
the call has been interrupted.
8 years ago
Damien Goutte-Gattat
32b9bbefe9
Factorize struct definition
8 years ago
Damien Goutte-Gattat
5b520700ec
Add wait4all function (/proc mode)
8 years ago
Damien Goutte-Gattat
d7d3736513
Accept arbitrary number of pids
8 years ago
Damien Goutte-Gattat
d186fc4857
Add wait4all function (Netlink mode)
8 years ago
Damien Goutte-Gattat
930ce3f85f
Check error conditions
8 years ago
Damien Goutte-Gattat
a82fb7d161
Merge branch 'develop'
8 years ago
Damien Goutte-Gattat
d42e8bc517
Add docs files
8 years ago
Damien Goutte-Gattat
fd572cee14
Auto-detect the availability of Netlink
8 years ago