summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2008-03-09 12:56:00 +0100
committerDan McGee <dan@archlinux.org>2008-03-09 11:30:59 -0500
commit2f9f48edddadffa2ac39ed7291f92be7be3b0fb5 (patch)
treee8853dae93f3253ebd7301283a4594de2952035a /lib
parent1dfcf1495ba4c0ac36d770ef892483459e5678c4 (diff)
downloadpacman-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 'lib')
0 files changed, 0 insertions, 0 deletions