diff options
author | Chantry Xavier <shiningxc@gmail.com> | 2008-03-09 12:56:00 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-03-09 17:30:59 +0100 |
commit | 2f9f48edddadffa2ac39ed7291f92be7be3b0fb5 (patch) | |
tree | e8853dae93f3253ebd7301283a4594de2952035a /contrib/wget-xdelta.sh | |
parent | 1dfcf1495ba4c0ac36d770ef892483459e5678c4 (diff) | |
download | pacman-2f9f48edddadffa2ac39ed7291f92be7be3b0fb5.tar.gz pacman-2f9f48edddadffa2ac39ed7291f92be7be3b0fb5.tar.xz |
src/pacman/pacman.c : split cleanup function.
This function was used in two different ways :
- as a signal handler : the argument was the signal number
- called manually for freeing the resources : the argument was the return
value
So the first part is now handler(int), and the second cleanup(int).
Ref: http://www.archlinux.org/pipermail/pacman-dev/2008-March/011388.html
Remaining problems :
- the return values are messy. for example, 2 can mean both that it was
interrupted (SIGINT == 2), or that --help or -V was used (returned by
parseargs).
- apparently signal is not portable and sigaction should be used instead
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Diffstat (limited to 'contrib/wget-xdelta.sh')
0 files changed, 0 insertions, 0 deletions